mirror of
https://github.com/wassname/Open-Assistant.git
synced 2026-07-24 12:50:50 +08:00
Fix expiry test in Task.expired()
Co-authored-by: Hemang Joshi <hemangjoshi37a@gmail.com>
This commit is contained in:
co-authored by
Hemang Joshi
parent
4c7645f576
commit
225aa58f89
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user