fmt + script

This commit is contained in:
lda committed 2026-08-23 21:29:58 +07:00 Verified
1 parent 067eff1ec8
commit 509c5d723d
5 files changed
+85 -6

No files matched your search

+3 -3
View File
@@ -28,7 +28,7 @@ def parse_session_filename(name: str):
return None
started = datetime.strptime(
f'{match.group("date")} {match.group("time")}',
f"{match.group('date')} {match.group('time')}",
"%Y-%m-%d %H-%M-%S",
)
@@ -61,10 +61,10 @@ def format_session_line(file: Path) -> str | None:
size = format_size(stat.st_size)
return (
f'{parsed["started"]:%Y-%m-%d %H:%M:%S} | '
f"{parsed['started']:%Y-%m-%d %H:%M:%S} | "
f"updated {modified:%Y-%m-%d %H:%M:%S} | "
f"{size:>8} | "
f'codex resume {parsed["uuid"]}'
f"codex resume {parsed['uuid']}"
)