Commit 76b3253bc0c4d1b6ee797f0b42ca14cfe15bcd90
Fix bug in last updated collection not being created
| | | | 58 | if siteMenu.find_one() == None: | 58 | if siteMenu.find_one() == None: |
---|
59 | siteMenu.insert({'customMenu': False, 'menuOrder': [], 'html': ''}) | 59 | siteMenu.insert({'customMenu': False, 'menuOrder': [], 'html': ''}) |
---|
60 | | 60 | |
---|
| | 61 | if lastUpdated.find_one() == None: |
---|
| | 62 | lastUpdated.insert({'last_updated': datetime.utcnow()}) |
---|
| | 63 | |
---|
61 | siteFooter = db['footer'] | 64 | siteFooter = db['footer'] |
---|
62 | if siteFooter.find_one() == None: | 65 | if siteFooter.find_one() == None: |
---|
63 | siteFooter.insert({'html': ''}) | 66 | siteFooter.insert({'html': ''}) |
---|