From 55758bea418a0cdb80c84991196b9ec19caad173 Mon Sep 17 00:00:00 2001 From: endorphant Date: Fri, 29 Apr 2016 22:24:30 -0400 Subject: [PATCH] reverse sort file list for newest-first posting --- bin/core.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/bin/core.py b/bin/core.py index 7429c19..a4b769a 100644 --- a/bin/core.py +++ b/bin/core.py @@ -31,6 +31,7 @@ for file in os.listdir(DATA): if os.path.isfile(filename) and os.path.splitext(filename)[1] == ".txt": FILES.append(file) +FILES.reverse() print FILES def write(outurl="default.html"): @@ -70,8 +71,6 @@ def write_entry(file): raw.append(line) rawfile.close() - print raw - for line in raw: entry.append(line+"\t\t\t") if line == "\n":