Use statistics for returned letters on dashboard

This should be faster and more accurate than querying all the reports.
This commit is contained in:
Chris Hill-Scott
2020-04-01 10:18:55 +01:00
parent c3fa8ab2e1
commit 7fb8e1de92
10 changed files with 102 additions and 83 deletions
+1 -1
View File
@@ -31,7 +31,7 @@ def test_sign_out_user(
mock_get_usage,
mock_get_free_sms_fragment_limit,
mock_get_inbound_sms_summary,
mock_get_returned_letter_summary_with_no_returned_letters,
mock_get_returned_letter_statistics_with_no_returned_letters
):
with client_request.session_transaction() as session:
assert session.get('user_id') is not None