From 67137f557088d181a3eafc28f015f67461f010ac Mon Sep 17 00:00:00 2001 From: Chris Hill-Scott Date: Tue, 6 Jun 2017 12:44:59 +0100 Subject: [PATCH] Fix timestamp of latest inbound text on dashboard Key was misnamed. --- app/templates/views/dashboard/_inbox.html | 4 ++-- tests/conftest.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/templates/views/dashboard/_inbox.html b/app/templates/views/dashboard/_inbox.html index c79b0888f..37ad932e4 100644 --- a/app/templates/views/dashboard/_inbox.html +++ b/app/templates/views/dashboard/_inbox.html @@ -12,8 +12,8 @@ ) }}
- {% 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 %}
diff --git a/tests/conftest.py b/tests/conftest.py index 0201f99bc..958aac94d 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -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(