Skip to content

Commit

Permalink
Fix for FulcrumAdmin query comment not formatting amounts properly
Browse files Browse the repository at this point in the history
Oops. Fixed.
  • Loading branch information
cculianu committed Apr 9, 2023
1 parent e7e27c0 commit 713d2d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion FulcrumAdmin
Original file line number Diff line number Diff line change
Expand Up @@ -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}'
Expand Down

0 comments on commit 713d2d7

Please sign in to comment.