Fix bug on organisation-usage page.

The dict is initialised for all live services, but if the organisation has trial mode services they cause a key error.
This commit is contained in:
Rebecca Law
2020-02-27 13:52:02 +00:00
parent ba24fe449b
commit 7b0a3c68cd
3 changed files with 28 additions and 10 deletions

View File

@@ -71,7 +71,7 @@ def persist_notification(
billable_units=None,
postage=None,
template_postage=None,
document_download_count=None,
document_download_count=None
):
notification_created_at = created_at or datetime.utcnow()
if not notification_id: