Added a template_type to the rest call

Added a template type which is required for the admin UI and updated the
tests. The rest tests needed updated because of the bug fix for
aggregation.
This commit is contained in:
Richard Chapman
2017-11-16 14:41:07 +00:00
parent 5ba58031b1
commit e7de0c0900
7 changed files with 60 additions and 6 deletions

View File

@@ -34,6 +34,7 @@ def dao_get_template_usage_stats_by_service(service_id, year):
return db.session.query(
StatsTemplateUsageByMonth.template_id,
Template.name,
Template.template_type,
StatsTemplateUsageByMonth.month,
StatsTemplateUsageByMonth.year,
StatsTemplateUsageByMonth.count