Skip to content

Commit

Permalink
Force display of small gift amounts into decimal, not scientific nota…
Browse files Browse the repository at this point in the history
…tion
  • Loading branch information
joemarct committed Nov 25, 2024
1 parent 2a5a87d commit a5b8fae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion paytacagifts/views/home.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def get(self, request):
claimed = False
if gift:
exists = True
amount = float(gift.amount)
amount = '{:.8f}'.format(gift.amount).rstrip('0')
if gift.date_claimed:
claimed = True

Expand Down

0 comments on commit a5b8fae

Please sign in to comment.