From: Drew Fisher Date: Sun, 2 Oct 2022 04:16:33 +0000 (-0700) Subject: Don't serve .gitignore (or other non-entry files) X-Git-Url: http://git.zarvox.org/shortlog/static/main.js?a=commitdiff_plain;p=shortlog.git Don't serve .gitignore (or other non-entry files) --- 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