reverse sort file list for newest-first posting

master
endorphant 2016-04-29 22:24:30 -04:00
parent 0ccd6300ce
commit 55758bea41
1 changed files with 1 additions and 2 deletions

View File

@ -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":