added chatter function

This commit is contained in:
endorphant
2016-04-30 20:19:00 -04:00
parent 6dab09e611
commit d50c4d5d2c
4 changed files with 67 additions and 10 deletions

View File

@@ -10,7 +10,6 @@ LIVE = "http://tilde.town/~"
WWW = os.path.join(PATH, "www")
CONFIG = os.path.join(PATH, "config")
DATA = os.path.join(PATH, "entries")
#DATA = os.path.join("..", "data")
MONTHS = {
"01":"january",
@@ -36,11 +35,11 @@ for file in os.listdir(DATA):
filename = os.path.join(DATA, file)
if os.path.isfile(filename) and os.path.splitext(filename)[1] == ".txt":
FILES.append(file)
print(file)
#print(file)
FILES.sort()
FILES.reverse()
print("found: "+str(FILES))
#print("found: "+str(FILES))
def write(outurl="default.html"):
outfile = open(os.path.join(WWW, outurl), "w")