Return precompiled_letter flag rather than hidden

This commit is contained in:
Ken Tsang
2018-03-05 18:51:04 +00:00
parent b5a2dbb24e
commit bca858f4a8
3 changed files with 23 additions and 10 deletions

View File

@@ -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']
)
}
)