feat(repo): scenario-status counts a scenario from its newest log

This commit is contained in:
LGUG2Z committed 2026-10-30 12:06:25 -07:00
1 parent d2249f63dc
commit 3af590c300
3 files changed
+40 -13

No files matched your search

+5 -2
View File
@@ -25,8 +25,11 @@ parser.add_argument("--update", type=Path, help="the document to put the table i
args = parser.parse_args()
found = status.Status()
for log in args.kde:
status.read_kde(found, log.read_text(errors="replace"))
# oldest first, so that a scenario two logs have is counted from the newer
for log in sorted(args.kde, key=lambda path: path.stat().st_mtime):
one = status.Status()
status.read_kde(one, log.read_text(errors="replace"))
status.merge(found, one)
for directory in args.windows:
status.read_windows(found, directory)
text = status.table(found)