don't try to check payments that start with temp_ or internal_.

This commit is contained in:
fiatjaf
2020-09-02 11:10:48 -03:00
parent b56877d470
commit d2650d6e2c
3 changed files with 13 additions and 3 deletions
+4
View File
@@ -96,6 +96,10 @@ class Payment(NamedTuple):
def is_out(self) -> bool:
return self.amount < 0
@property
def is_uncheckable(self) -> bool:
return self.checking_id.startswith("temp_") or self.checking_id.startswith("internal_")
def set_pending(self, pending: bool) -> None:
from .crud import update_payment_status