From 8ae32eb4bbf45b071e2d19cbd636305d28fb3daa Mon Sep 17 00:00:00 2001 From: endorphant Date: Wed, 4 May 2016 20:07:42 -0400 Subject: [PATCH] timestamp tweaks, adding tdl --- bin/core.py | 2 +- bin/ttbp.py | 2 +- changelog.txt | 8 +++----- 3 files changed, 5 insertions(+), 7 deletions(-) diff --git a/bin/core.py b/bin/core.py index 2e8194d..cbed5ce 100644 --- a/bin/core.py +++ b/bin/core.py @@ -162,7 +162,7 @@ def meta(entries = FILES): for filename in entries: ctime = os.path.getctime(filename) 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)) author = os.path.split(os.path.split(os.path.split(os.path.split(filename)[0])[0])[0])[1] diff --git a/bin/ttbp.py b/bin/ttbp.py index 5271b35..bd3f99b 100644 --- a/bin/ttbp.py +++ b/bin/ttbp.py @@ -391,7 +391,7 @@ def view_feed(): if len(entry[5]) < 8: 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) view_entries(metas, entries, "most recent ten entries: \n\n") diff --git a/changelog.txt b/changelog.txt index 4666390..2276b89 100644 --- a/changelog.txt +++ b/changelog.txt @@ -6,11 +6,9 @@ TO-DO: -filename validator -only count/process entries if filename is .ttbp/entries/YYMMDD.txt" - -browse own entries - -started this one, call 'beta' from ttbp to test, - function is view_entries() on ttbp.py - -browse other blogs - -show most recent global entries + -show most recent global entries on html + -make a nicer entry view wrapper + -maybe with a box? and a nicer feed view? (goals for phase two)