mirror of
https://github.com/lnbits/lnbits-legend.git
synced 2025-02-24 14:51:05 +01:00
on-the-fly deletion
This commit is contained in:
parent
167c2ce9f1
commit
32448c4b0c
1 changed files with 1 additions and 1 deletions
|
@ -178,7 +178,7 @@ class Payment(BaseModel):
|
||||||
|
|
||||||
logger.debug(f"Status: {status}")
|
logger.debug(f"Status: {status}")
|
||||||
|
|
||||||
if self.is_in and self.is_expired:
|
if self.is_in and status.pending and self.is_expired:
|
||||||
expiration_date = datetime.datetime.fromtimestamp(self.expiry)
|
expiration_date = datetime.datetime.fromtimestamp(self.expiry)
|
||||||
logger.debug(
|
logger.debug(
|
||||||
f"Deleting expired incoming payment {self.checking_id}: expired {expiration_date}"
|
f"Deleting expired incoming payment {self.checking_id}: expired {expiration_date}"
|
||||||
|
|
Loading…
Add table
Reference in a new issue