reverse sort file list for newest-first posting
parent
0ccd6300ce
commit
55758bea41
|
@ -31,6 +31,7 @@ for file in os.listdir(DATA):
|
||||||
if os.path.isfile(filename) and os.path.splitext(filename)[1] == ".txt":
|
if os.path.isfile(filename) and os.path.splitext(filename)[1] == ".txt":
|
||||||
FILES.append(file)
|
FILES.append(file)
|
||||||
|
|
||||||
|
FILES.reverse()
|
||||||
print FILES
|
print FILES
|
||||||
|
|
||||||
def write(outurl="default.html"):
|
def write(outurl="default.html"):
|
||||||
|
@ -70,8 +71,6 @@ def write_entry(file):
|
||||||
raw.append(line)
|
raw.append(line)
|
||||||
rawfile.close()
|
rawfile.close()
|
||||||
|
|
||||||
print raw
|
|
||||||
|
|
||||||
for line in raw:
|
for line in raw:
|
||||||
entry.append(line+"\t\t\t")
|
entry.append(line+"\t\t\t")
|
||||||
if line == "\n":
|
if line == "\n":
|
||||||
|
|
Loading…
Reference in New Issue