Browse Source

fix: wallet.balance computed property self-reference.

aiosqlite
fiatjaf 5 years ago
parent
commit
d09e624eb6
  1. 2
      lnbits/core/models.py

2
lnbits/core/models.py

@ -27,7 +27,7 @@ class Wallet(NamedTuple):
@property @property
def balance(self) -> int: def balance(self) -> int:
return self.balance // 1000 return self.balance_msat // 1000
def get_payment(self, checking_id: str) -> Optional["Payment"]: def get_payment(self, checking_id: str) -> Optional["Payment"]:
from .crud import get_wallet_payment from .crud import get_wallet_payment

Loading…
Cancel
Save