Bugfixes + QOL

This commit is contained in:
2025-10-20 16:42:37 -04:00
parent f1f33948e3
commit 908316dc34
4 changed files with 107 additions and 187 deletions
+4 -2
View File
@@ -442,7 +442,9 @@ class ExecutionHistoryRecord:
needs_review = []
unknown = []
for record in executions:
sorted_executions = sorted(executions, key=lambda x: x.filename)
for record in sorted_executions:
decision = getattr(record.hash_obj, "at_decision", None)
if decision == "approved":
approved.append(record)
@@ -453,7 +455,7 @@ class ExecutionHistoryRecord:
else:
unknown.append(record)
logger.info(f"[ExecutionHistoryRecord] Sorted {len(executions)} records by hash_obj.at_decision:")
logger.info(f"[ExecutionHistoryRecord] Sorted {len(sorted_executions)} records by hash_obj.at_decision:")
logger.info(f" Approved: {len(approved)}")
logger.info(f" Unapproved: {len(unapproved)}")
logger.info(f" Needs Review: {len(needs_review)}")