From e50513a56e18f794ab4b3efa8635d1e0b6dd9f83 Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Fri, 8 Mar 2013 08:21:39 +0100 Subject: Added generation date for the html export. --- source/export.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'source') diff --git a/source/export.py b/source/export.py index 968f4959..75c2f0eb 100644 --- a/source/export.py +++ b/source/export.py @@ -36,6 +36,7 @@ __license__ = "GPLv3" # import os +import time import conf import utils @@ -194,7 +195,8 @@ def export_html(mongo_db): with open(feed_index, "w") as f: f.write(posts) - index += "\n\n
\n" + index += "\n" + index += "

" + time.strftime("Generated on %d %b %Y at %H:%M.") + "

\n" index += HTML_FOOTER with open(conf.path + "/var/export/webzine/" + "index.html", "w") as f: f.write(index) -- cgit