Add template hidden field in response

This commit is contained in:
Ken Tsang
2018-03-05 13:38:41 +00:00
parent ee9b6f1fe0
commit 564504bf97
7 changed files with 15 additions and 3 deletions

View File

@@ -47,7 +47,8 @@ def get_template_statistics_for_service_by_day(service_id):
'count': data.count,
'template_id': str(data.template_id),
'template_name': data.name,
'template_type': data.template_type
'template_type': data.template_type,
'template_hidden': data.hidden
}
return jsonify(data=[serialize(row) for row in stats])