Added returned-letter-summary page.

This page displays a list of available reports, a report is a set of returned lettters that have been reported on the same day.
Each line of the page is a link that can download the report.

I'm not sure the format of the csv is right. The data might be confusing especially if the service has a mix of precompiled templates and jobs.
Units tests are still to come.
This commit is contained in:
Rebecca Law
2019-12-18 11:53:46 +00:00
parent e2d979f199
commit 729281532d
4 changed files with 37 additions and 6 deletions

View File

@@ -575,4 +575,5 @@ class ServiceAPIClient(NotifyAdminAPIClient):
def get_returned_letters(self, service_id, reported_at):
return self.get("service/{}/returned-letters?reported_at={}".format(service_id, reported_at))
service_api_client = ServiceAPIClient()