mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-23 15:57:23 -04:00
add tests for get_dashboard_totals
This commit is contained in:
@@ -48,7 +48,7 @@ def get_formatted_percentage(x, tot):
|
||||
"""
|
||||
Return a percentage to one decimal place (respecting )
|
||||
"""
|
||||
return "{0:.1f}".format((float(x) / tot * 100)) if tot else 0
|
||||
return "{0:.1f}".format((float(x) / tot * 100)) if tot else '0'
|
||||
|
||||
|
||||
def statistics_by_state(statistics):
|
||||
|
||||
Reference in New Issue
Block a user