[fix] show_date default value wasn't transmitted to templates

This commit is contained in:
Laurent Peuch 2016-04-14 02:42:50 +02:00
parent 8be21950f8
commit aad887cf50

View File

@ -101,6 +101,9 @@ def main():
if settings.get("settings", {}).get("gm"): if settings.get("settings", {}).get("gm"):
SETTINGS["gm"].update(settings["settings"]["gm"]) SETTINGS["gm"].update(settings["settings"]["gm"])
if not "show_date" in settings:
settings["show_date"] = SETTINGS["show_date"]
front_page_galleries_cover = [] front_page_galleries_cover = []
dirs = filter(lambda x: x not in (".", "..") and os.path.isdir(x) and os.path.exists(os.path.join(os.getcwd(), x, "settings.yaml")), os.listdir(os.getcwd())) dirs = filter(lambda x: x not in (".", "..") and os.path.isdir(x) and os.path.exists(os.path.join(os.getcwd(), x, "settings.yaml")), os.listdir(os.getcwd()))