Add template type to response and refactor

This commit is contained in:
Imdad Ahad
2017-02-20 11:29:15 +00:00
parent 520c588d56
commit 36d52c6e42
4 changed files with 10 additions and 5 deletions

View File

@@ -246,6 +246,7 @@ def dao_fetch_monthly_historical_stats_by_template_for_service(service_id, year)
rows = db.session.query(
Template.id.label('template_id'),
Template.name,
Template.template_type,
sq.c.status,
sq.c.count.label('count'),
sq.c.month