From c7b1e16b82b4ec099be048a4aeaad104500f033c Mon Sep 17 00:00:00 2001 From: Castro0o Date: Thu, 12 Apr 2018 11:47:58 +0200 Subject: [PATCH] created templates and small changes to scripts for 2018 website --- index-template-2017.html | 4 ++-- mmdc_modules.py | 2 +- mmdc_wiki2web.py | 4 +++- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/index-template-2017.html b/index-template-2017.html index 3849a39..b19c976 100644 --- a/index-template-2017.html +++ b/index-template-2017.html @@ -10,13 +10,13 @@ - + - + diff --git a/mmdc_modules.py b/mmdc_modules.py index 1a00060..823977d 100644 --- a/mmdc_modules.py +++ b/mmdc_modules.py @@ -10,7 +10,7 @@ from datetime import datetime ###### -years = range(2015, (datetime.now()).year ) +years = range(2015, (datetime.now()).year + 1) ######### diff --git a/mmdc_wiki2web.py b/mmdc_wiki2web.py index b7f2f12..beae1f7 100755 --- a/mmdc_wiki2web.py +++ b/mmdc_wiki2web.py @@ -10,6 +10,8 @@ from random import shuffle # * webserver: to server web/ folder # ### WORKINGS #### +# * years are create by var years = range(2015, (datetime.now()).year+1) in mmdc_moudles.py + # * each year has its own html template in YYYY-template.html # * the --category provides the year. I.e. 2017 # * year does not need to be indicated in arguments @@ -172,7 +174,7 @@ for key in indexdict.keys(): # populate indexdict_byyear with works indexdict_byyear[ int(indexdict[key]['Date'])][key] = indexdict[key] #print '\n\n******* indexdict_byyear ***********\n\n' -#pprint.pprint( indexdict_byyear ) +pprint.pprint( indexdict_byyear ) for year in indexdict_byyear.keys(): # create index page for each year ie 2016.html print '\n***** ', year, ' *****\n'