aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCédric Bonhomme <kimble.mandel@gmail.com>2013-03-08 08:21:39 +0100
committerCédric Bonhomme <kimble.mandel@gmail.com>2013-03-08 08:21:39 +0100
commite50513a56e18f794ab4b3efa8635d1e0b6dd9f83 (patch)
treee86e365468a32ea271565043af3a063b32cfa212
parentMinor fix: removed </style> tag at the end of the CSS. (diff)
downloadnewspipe-e50513a56e18f794ab4b3efa8635d1e0b6dd9f83.tar.gz
newspipe-e50513a56e18f794ab4b3efa8635d1e0b6dd9f83.tar.bz2
newspipe-e50513a56e18f794ab4b3efa8635d1e0b6dd9f83.zip
Added generation date for the html export.
-rw-r--r--source/export.py4
1 files changed, 3 insertions, 1 deletions
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</ul>\n<br />\n"
+ index += "</ul>\n"
+ index += "<p>" + time.strftime("Generated on %d %b %Y at %H:%M.") + "</p>\n"
index += HTML_FOOTER
with open(conf.path + "/var/export/webzine/" + "index.html", "w") as f:
f.write(index)
bgstack15