Fixed date comparision
This commit is contained in:
parent
7ad54ffb30
commit
0a475b9f99
@ -85,7 +85,8 @@ class Habit:
|
||||
count = 0
|
||||
self.checked = False
|
||||
for tracking in self.get_habitTrackings():
|
||||
if tracking.created_at == datetime.today():
|
||||
print(tracking.created_at, datetime.today())
|
||||
if tracking.created_at.date() == datetime.today().date():
|
||||
self.checked = True
|
||||
|
||||
# day
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user