From 0ccd6300ceaa1d5db7c8a949354308081a980c83 Mon Sep 17 00:00:00 2001 From: endorphant Date: Fri, 29 Apr 2016 22:22:21 -0400 Subject: [PATCH] pretty month --- bin/core.py | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/bin/core.py b/bin/core.py index 6d94772..7429c19 100644 --- a/bin/core.py +++ b/bin/core.py @@ -6,6 +6,21 @@ WWW = os.path.join("..","www") CONFIG = os.path.join("config") DATA = os.path.join("..", "data") +MONTHS = { + "01":"january", + "02":"february", + "03":"march", + "04":"april", + "05":"may", + "06":"june", + "07":"july", + "08":"august", + "09":"september", + "10":"october", + "11":"november", + "12":"december" + } + HEADER = open(os.path.join(CONFIG, "header.txt")).read() FOOTER = open(os.path.join(CONFIG, "footer.txt")).read() @@ -44,7 +59,7 @@ def write_entry(file): entry = [ "\t\t



\n", "\t\t
\n", - "\t\t\t
"+date[2]+" month "+date[0]+"
\n", + "\t\t\t
"+date[2]+" "+MONTHS[date[1]]+" "+date[0]+"
\n", "\t\t\t

" ]