mirror of
https://github.com/lnbits/lnbits.git
synced 2025-06-29 02:01:35 +02:00
chore: add a todo
This commit is contained in:
@ -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:
|
||||||
|
Reference in New Issue
Block a user