From f084b6b60b0b19f3a5586ac7508fc8be1ce04624 Mon Sep 17 00:00:00 2001 From: mjfernez Date: Wed, 22 Nov 2023 14:43:41 -0500 Subject: Moved latest updates to files. Fixed up RESUME. Also fixed an issue with the latest page where it tried to redirect to a subdirectory instead of going from root --- update_latest.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'update_latest.py') diff --git a/update_latest.py b/update_latest.py index 160dc7c..94bf5a2 100644 --- a/update_latest.py +++ b/update_latest.py @@ -1,6 +1,7 @@ import os import subprocess -from time import mktime, ctime +from time import mktime +from datetime import date from email.utils import parsedate def file_last_modified(path): @@ -35,7 +36,8 @@ for f, t in sorted(updates.items(), key=lambda x: x[1], reverse=True)[:10]: #print(f, ctime(t), sep="\t") - print(f"\t
  • {f.split()[-1]} - Updated: {ctime(t)}
  • ") + if f != "latest.html": + print(f"\t
  • {f.split()[-1]} - Updated: {date.fromtimestamp(t)}
  • ") print("") print("") -- cgit v1.2.3