From 76b3253bc0c4d1b6ee797f0b42ca14cfe15bcd90 Mon Sep 17 00:00:00 2001 From: Anon Ray Date: Thu, 27 Feb 2014 18:11:57 +0530 Subject: [PATCH] Fix bug in last updated collection not being created --- mouchak/server.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mouchak/server.py b/mouchak/server.py index d077766..27005a6 100644 --- a/mouchak/server.py +++ b/mouchak/server.py @@ -58,6 +58,9 @@ analytics_coll = db['analytics'] if siteMenu.find_one() == None: siteMenu.insert({'customMenu': False, 'menuOrder': [], 'html': ''}) +if lastUpdated.find_one() == None: + lastUpdated.insert({'last_updated': datetime.utcnow()}) + siteFooter = db['footer'] if siteFooter.find_one() == None: siteFooter.insert({'html': ''}) -- 1.7.10.4