new revised table

This commit is contained in:
Beverly Nguyen
2024-08-29 14:28:37 -07:00
parent 556e381677
commit 3158b91378
3 changed files with 49 additions and 32 deletions

View File

@@ -327,6 +327,12 @@ def aggregate_template_usage(template_statistics, sort_key="count"):
"template_name": template_stats[0]["template_name"],
"template_type": template_stats[0]["template_type"],
"count": sum(s["count"] for s in template_stats),
"last_used": max(s["last_used"] for s in template_stats if s["last_used"]),
"created_by": template_stats[0]["created_by"],
"created_by_id": template_stats[0]["created_by_id"],
"status": template_stats[0]["status"],
"template_folder": template_stats[0]["template_folder"],
"template_folder_id": template_stats[0]["template_folder_id"],
}
)