This commit is contained in:
gerlofvanek
2026-05-08 19:59:42 +02:00
parent 9244a9fed8
commit 8fe0913fda
+3 -3
View File
@@ -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: