api: Fix identities command not able to modify data.

This commit is contained in:
tecnovert
2025-01-07 18:38:01 +02:00
parent 691e3f1b82
commit 9eacd35319
2 changed files with 7 additions and 52 deletions

View File

@@ -1861,8 +1861,8 @@ class BasicSwap(BaseApp):
rv = []
for row in q:
identity = {
"address": row[0],
"label": row[1],
"address": row[0] if row[0] is not None else "",
"label": row[1] if row[1] is not None else "",
"num_sent_bids_successful": zeroIfNone(row[2]),
"num_recv_bids_successful": zeroIfNone(row[3]),
"num_sent_bids_rejected": zeroIfNone(row[4]),