timestamp tweaks, adding tdl

master
endorphant 2016-05-04 20:07:42 -04:00
parent 4ff3b2b65a
commit 8ae32eb4bb
3 changed files with 5 additions and 7 deletions

View File

@ -162,7 +162,7 @@ def meta(entries = FILES):
for filename in entries: for filename in entries:
ctime = os.path.getctime(filename) ctime = os.path.getctime(filename)
wc = subprocess.check_output(["wc","-w",filename]).split()[0] wc = subprocess.check_output(["wc","-w",filename]).split()[0]
timestamp = time.strftime("%Y-%m-%d %H:%M", time.localtime(ctime)) timestamp = time.strftime("%Y-%m-%d at %H:%M", time.localtime(ctime))
date = "-".join(parse_date(filename)) date = "-".join(parse_date(filename))
author = os.path.split(os.path.split(os.path.split(os.path.split(filename)[0])[0])[0])[1] author = os.path.split(os.path.split(os.path.split(os.path.split(filename)[0])[0])[0])[1]

View File

@ -391,7 +391,7 @@ def view_feed():
if len(entry[5]) < 8: if len(entry[5]) < 8:
pad = "\t" pad = "\t"
entries.append("~"+entry[5]+pad+"\ton "+entry[4]+" ("+p.no("word", entry[2])+") ") entries.append("~"+entry[5]+pad+"\ton "+entry[3]+" ("+p.no("word", entry[2])+") ")
#print_menu(entries) #print_menu(entries)
view_entries(metas, entries, "most recent ten entries: \n\n") view_entries(metas, entries, "most recent ten entries: \n\n")

View File

@ -6,11 +6,9 @@ TO-DO:
-filename validator -filename validator
-only count/process entries if filename is -only count/process entries if filename is
.ttbp/entries/YYMMDD.txt" .ttbp/entries/YYMMDD.txt"
-browse own entries -show most recent global entries on html
-started this one, call 'beta' from ttbp to test, -make a nicer entry view wrapper
function is view_entries() on ttbp.py -maybe with a box? and a nicer feed view?
-browse other blogs
-show most recent global entries
(goals for phase two) (goals for phase two)