mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-05 23:38:25 -04:00
Merge pull request #1305 from alphagov/fix-key-inbound
Fix timestamp of latest inbound text on dashboard
This commit is contained in:
@@ -12,8 +12,8 @@
|
|||||||
)
|
)
|
||||||
}}
|
}}
|
||||||
<div class="big-number-meta">
|
<div class="big-number-meta">
|
||||||
{% if inbound_sms_summary.latest_message %}
|
{% if inbound_sms_summary.most_recent %}
|
||||||
latest message {{ inbound_sms_summary.latest_message | format_delta }}
|
latest message {{ inbound_sms_summary.most_recent | format_delta }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1169,7 +1169,7 @@ def mock_get_inbound_sms_summary(mocker):
|
|||||||
):
|
):
|
||||||
return {
|
return {
|
||||||
'count': 99,
|
'count': 99,
|
||||||
'latest_message': datetime.utcnow().isoformat()
|
'most_recent': datetime.utcnow().isoformat()
|
||||||
}
|
}
|
||||||
|
|
||||||
return mocker.patch(
|
return mocker.patch(
|
||||||
|
|||||||
Reference in New Issue
Block a user