Leo Hemsted
028b81b787
simplify validate_date_range_is_within_a_financial_year
...
we can use the get_financial_year_for_datetime function
to massively simplify this
2019-08-30 12:18:00 +01:00
Rebecca Law
1c94d6d24a
Added command to populate data for annual billing based on last years values.
2019-08-30 12:17:59 +01:00
Rebecca Law
cb7fff6100
Add endpoint to return structured data
2019-08-30 12:17:59 +01:00
Rebecca Law
c766febe94
Update /platform-stats to return the data from ft_notification_status, that way the request should not time out for a long date range.
...
Next steps is to update the query for platform admin stats for all services.
2018-12-03 15:46:44 +00:00
Katie Smith
b4654781be
Add schema and validate platform stats requests
...
Added a schema to check that the start_date and end_date arguments are
both in the date format.
2018-06-29 16:14:48 +01:00
Katie Smith
4b030b1583
Create platform-stats blueprint
...
Created a platform-stats blueprint and moved the new platform stats
endpoint to the new blueprint (it was previously in the service
blueprint). Since the original platform stats route and the new platform
stats route are now in different blueprints, their view functions can
have the same name without any issues.
2018-06-29 16:01:45 +01:00