Bugfixes + QOL
This commit is contained in:
+4
-2
@@ -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)}")
|
||||
|
||||
Reference in New Issue
Block a user