mirror of
https://github.com/lnbits/lnbits-legend.git
synced 2025-02-22 06:21:53 +01:00
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
|
||||
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…
Add table
Reference in a new issue