fix validation rules so description_hash works.

This commit is contained in:
fiatjaf
2020-07-04 22:28:08 -03:00
parent bc27293315
commit 24dc6e5415
6 changed files with 9 additions and 17 deletions
+1 -1
View File
@@ -115,7 +115,7 @@ def get_wallet(wallet_id: str) -> Optional[Wallet]:
def get_wallet_for_key(key: str, key_type: str = "invoice") -> Optional[Wallet]:
with open_db() as db:
row = db.fetchone(
f"""
"""
SELECT *, COALESCE((SELECT balance FROM balances WHERE wallet = wallets.id), 0) AS balance_msat
FROM wallets
WHERE adminkey = ? OR inkey = ?