mirror of
https://github.com/cculianu/Fulcrum.git
synced 2026-08-13 12:33:27 +02:00
Fix for FulcrumAdmin query comment not formatting amounts properly
Oops. Fixed.
This commit is contained in:
parent
e7e27c0be9
commit
713d2d714f
1 changed files with 1 additions and 1 deletions
|
|
@ -329,7 +329,7 @@ def query_address_handler(response_list, limit):
|
|||
if neg:
|
||||
value = -value
|
||||
integral_part = value // int(1e8)
|
||||
frac_part_str = f'{value % int(1e8):d}'
|
||||
frac_part_str = f'{value % int(1e8):08d}'
|
||||
while len(frac_part_str) > 1 and frac_part_str[-1] == '0': # Trim trailing zeroes
|
||||
frac_part_str = frac_part_str[:-1]
|
||||
return f'{sign}{integral_part:,d}.{frac_part_str} {coin_str}'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue