Fixed Yassins code removal

This commit is contained in:
Verox001 2024-02-14 10:41:03 +01:00
parent b446bb55aa
commit 1180893dd1

View File

@ -80,6 +80,9 @@ class Habit:
count = 0 count = 0
self.checked = False self.checked = False
for tracking in self.get_habitTrackings(): for tracking in self.get_habitTrackings():
if tracking.created_at.date() == datetime.today().date():
self.checked = True
# day # day
if self.unit == 0: if self.unit == 0:
if tracking.created_at.date() == datetime.today().date(): if tracking.created_at.date() == datetime.today().date():