mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-03 09:51:11 -05:00
fix template api tests being inconsistent by adding ordering
This commit is contained in:
@@ -142,6 +142,8 @@ def dao_get_template_statistics_for_service(service_id, limit_days=None):
|
||||
def dao_get_template_statistics_for_template(template_id):
|
||||
return TemplateStatistics.query.filter(
|
||||
TemplateStatistics.template_id == template_id
|
||||
).order_by(
|
||||
desc(TemplateStatistics.updated_at)
|
||||
).all()
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user