make sure all letter costs are cast from decimal to float

This commit is contained in:
Leo Hemsted
2019-08-29 14:13:37 +01:00
parent 99a008e908
commit e4963ca0d3

View File

@@ -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 "",