chore: add a todo

This commit is contained in:
Vlad Stan 2022-07-06 12:55:34 +03:00
parent d93b199735
commit 5a005e830c

View File

@ -40,6 +40,10 @@ class Charges(BaseModel):
@property
def time_elapsed(self):
# todo:
# now = datetime.utcnow().timestamp()
# start = datetime.utcfromtimestamp(self.timestamp)
# expiration = (start + timedelta(minutes=self.time)).timestamp()
if (self.timestamp + (self.time * 60)) >= time.time():
return False
else: