Merge pull request #1305 from alphagov/fix-key-inbound

Fix timestamp of latest inbound text on dashboard
This commit is contained in:
Chris Hill-Scott
2017-06-06 12:47:31 +01:00
committed by GitHub
2 changed files with 3 additions and 3 deletions

View File

@@ -12,8 +12,8 @@
)
}}
<div class="big-number-meta">
{% if inbound_sms_summary.latest_message %}
latest message {{ inbound_sms_summary.latest_message | format_delta }}
{% if inbound_sms_summary.most_recent %}
latest message {{ inbound_sms_summary.most_recent | format_delta }}
{% endif %}
</div>
</div>

View File

@@ -1169,7 +1169,7 @@ def mock_get_inbound_sms_summary(mocker):
):
return {
'count': 99,
'latest_message': datetime.utcnow().isoformat()
'most_recent': datetime.utcnow().isoformat()
}
return mocker.patch(