mirror of
https://github.com/GSA/notifications-api.git
synced 2026-08-04 13:40:52 -04:00
Return precompiled_letter flag rather than hidden
This commit is contained in:
@@ -537,7 +537,11 @@ def get_monthly_template_usage(service_id):
|
||||
'month': i.month,
|
||||
'year': i.year,
|
||||
'count': i.count,
|
||||
'hidden': i.hidden
|
||||
'precompiled_letter': (
|
||||
i.template_type == 'letter' and
|
||||
i.hidden and
|
||||
i.name == current_app.config['PRECOMPILED_TEMPLATE_NAME']
|
||||
)
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
@@ -48,7 +48,11 @@ def get_template_statistics_for_service_by_day(service_id):
|
||||
'template_id': str(data.template_id),
|
||||
'template_name': data.name,
|
||||
'template_type': data.template_type,
|
||||
'template_hidden': data.hidden
|
||||
'precompiled_letter': (
|
||||
data.template_type == 'letter' and
|
||||
data.hidden and
|
||||
data.name == current_app.config['PRECOMPILED_TEMPLATE_NAME']
|
||||
)
|
||||
}
|
||||
|
||||
return jsonify(data=[serialize(row) for row in stats])
|
||||
|
||||
Reference in New Issue
Block a user