chore: add a todo
This commit is contained in:
parent
d93b199735
commit
5a005e830c
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue
Block a user