summaryrefslogtreecommitdiffstats
path: root/update_latest.py
diff options
context:
space:
mode:
authormjfernez <mjf@mjfer.net>2023-12-13 20:33:34 -0500
committermjfernez <mjf@mjfer.net>2023-12-13 20:33:34 -0500
commit0338257d0179aba49dbc774a1144883c527b82ba (patch)
tree8caf1a671f881ccb7678dc1c3132d51f9465d7b4 /update_latest.py
parent82072e84e040ff7cf1d275f947db399906b9f7ff (diff)
downloadsite-files-0338257d0179aba49dbc774a1144883c527b82ba.tar.gz
Fix latest so it doesn't list itself
Diffstat (limited to 'update_latest.py')
-rw-r--r--update_latest.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/update_latest.py b/update_latest.py
index 26bff62..3ee8bfc 100644
--- a/update_latest.py
+++ b/update_latest.py
@@ -38,7 +38,7 @@ for f, t in sorted(updates.items(),
key=lambda x: x[1],
reverse=True)[:10]:
#print(f, ctime(t), sep="\t")
- if f != "latest.html":
+ if "latest.html" not in f:
print(f"\t<li><a href=/{f}>{f.split()[-1]}</a> - Published: {date.fromtimestamp(t)}</li>")
print("</ul>")