]> git.zarvox.org Git - shortlog.git/commitdiff
Don't serve .gitignore (or other non-entry files) master
authorDrew Fisher <drew.m.fisher@gmail.com>
Sun, 2 Oct 2022 04:16:33 +0000 (21:16 -0700)
committerDrew Fisher <drew.m.fisher@gmail.com>
Sun, 2 Oct 2022 04:16:33 +0000 (21:16 -0700)
shortlog.py

index 4eaf96a4c168d44632d203d3693e969818624d1f..89e2421697d0c96c2224dbe40802c003c037ffaa 100755 (executable)
@@ -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