mirror of
https://github.com/GSA/notifications-api.git
synced 2026-01-28 05:21:54 -05:00
make sure all letter costs are cast from decimal to float
This commit is contained in:
@@ -84,7 +84,7 @@ def get_usage_for_all_services():
|
||||
|
||||
for l in letter_costs:
|
||||
if l.service_id in combined:
|
||||
combined[l.service_id].update({'letter_cost': l.letter_cost})
|
||||
combined[l.service_id].update({'letter_cost': float(l.letter_cost)})
|
||||
else:
|
||||
letter_entry = {
|
||||
"organisation_id": str(l.organisation_id) if l.organisation_id else "",
|
||||
|
||||
Reference in New Issue
Block a user