chore: add a todo
This commit is contained in:
parent
d93b199735
commit
5a005e830c
1 changed files with 4 additions and 0 deletions
|
|
@ -40,6 +40,10 @@ class Charges(BaseModel):
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def time_elapsed(self):
|
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():
|
if (self.timestamp + (self.time * 60)) >= time.time():
|
||||||
return False
|
return False
|
||||||
else:
|
else:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue