From 7a94df8d9e7cb40c937a12de833426268effb05c Mon Sep 17 00:00:00 2001
From: Drew Fisher <drew.m.fisher@gmail.com>
Date: Sat, 1 Oct 2022 21:16:33 -0700
Subject: [PATCH] Don't serve .gitignore (or other non-entry files)

---
 shortlog.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/shortlog.py b/shortlog.py
index 4eaf96a..89e2421 100755
--- a/shortlog.py
+++ b/shortlog.py
@@ -97,7 +97,7 @@ def loadComment(filepath):
 	return (nameline, emailline, websiteline, commentbody, timestamp, gravatar)
 
 def most_recent_entries_filelist(count):
-	files = sorted(os.listdir(entriesdir))
+	files = sorted([x for x in os.listdir(entriesdir) if re.match("\d\d\d\d-\d\d-\d\d.txt", x)])
 	return files[-count:]
 
 def getCommentFiles(date): # Returns a list of paths to comment files associated with date
-- 
2.39.5