Fix expiry test in Task.expired()

Co-authored-by: Hemang Joshi <hemangjoshi37a@gmail.com>
This commit is contained in:
Andreas Köpf
2023-01-09 11:13:18 +01:00
co-authored by Hemang Joshi
parent 4c7645f576
commit 225aa58f89
+1 -1
View File
@@ -35,4 +35,4 @@ class Task(SQLModel, table=True):
@property
def expired(self) -> bool:
return self.expiry_date is not None and datetime.utcnow() < self.expiry_date
return self.expiry_date is not None and datetime.utcnow() > self.expiry_date