Commit 76b3253bc0c4d1b6ee797f0b42ca14cfe15bcd90

  • Tree SHA1: 1909e28
  • Parent SHA1: 1dece8e (Merge branch 'master' of git.pantoto.org:karnataka-hybrid-micro-devices-ltd-khmdl-website/khmdl-website)
  • raw diff | raw patch
Fix bug in last updated collection not being created
  • Diff rendering mode:
  • inline
  • side by side

mouchak/server.py

58if siteMenu.find_one() == None:58if siteMenu.find_one() == None:
59 siteMenu.insert({'customMenu': False, 'menuOrder': [], 'html': ''})59 siteMenu.insert({'customMenu': False, 'menuOrder': [], 'html': ''})
6060
61if lastUpdated.find_one() == None:
62 lastUpdated.insert({'last_updated': datetime.utcnow()})
63
61siteFooter = db['footer']64siteFooter = db['footer']
62if siteFooter.find_one() == None:65if siteFooter.find_one() == None:
63 siteFooter.insert({'html': ''})66 siteFooter.insert({'html': ''})