mirror of
https://github.com/basicswap/basicswap.git
synced 2026-05-08 23:42:12 +02:00
BLACK
This commit is contained in:
@@ -200,9 +200,9 @@ def js_walletbalances(self, url_split, post_string, is_json) -> bytes:
|
|||||||
if field in w:
|
if field in w:
|
||||||
raw = w[field]
|
raw = w[field]
|
||||||
if isinstance(raw, float):
|
if isinstance(raw, float):
|
||||||
coin_entry[field] = (
|
coin_entry[field] = f"{raw:.8f}".rstrip(
|
||||||
f"{raw:.8f}".rstrip("0").rstrip(".")
|
"0"
|
||||||
)
|
).rstrip(".")
|
||||||
elif isinstance(raw, int):
|
elif isinstance(raw, int):
|
||||||
coin_entry[field] = str(raw)
|
coin_entry[field] = str(raw)
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user