Fix missing wallets page entries.
Some checks are pending
lint / build (3.12) (push) Waiting to run

This commit is contained in:
tecnovert 2024-11-22 20:46:50 +02:00
parent bd571702cb
commit 20c15aae9f
No known key found for this signature in database
GPG key ID: 8ED6D8750C4E3F93

View file

@ -10363,11 +10363,11 @@ class BasicSwap(BaseApp):
# Ensure the latest addresses are displayed # Ensure the latest addresses are displayed
coin_name: str = chainparams[coin_id]["name"] coin_name: str = chainparams[coin_id]["name"]
q = cursor.execute( qi = cursor.execute(
"SELECT key, value FROM kv_string WHERE key = ? OR key = ?", "SELECT key, value FROM kv_string WHERE key = ? OR key = ?",
(f"receive_addr_{coin_name}", f"stealth_addr_{coin_name}"), (f"receive_addr_{coin_name}", f"stealth_addr_{coin_name}"),
) )
for row in q: for row in qi:
if row[0].startswith("stealth"): if row[0].startswith("stealth"):
if coin_id == Coins.LTC: if coin_id == Coins.LTC:
wallet_data["mweb_address"] = row[1] wallet_data["mweb_address"] = row[1]