Home intro from retoor as editable site_intro setting; fix settings upsert
This commit is contained in:
@@ -157,9 +157,8 @@ def _seed_settings():
|
||||
if "site_settings" not in db.tables:
|
||||
return
|
||||
for key, value in SETTINGS_DEFAULTS.items():
|
||||
uid = f"default_{key}"
|
||||
if db["site_settings"].find_one(uid=uid) is None:
|
||||
db["site_settings"].insert({"uid": uid, "key": key, "value": value, "updated_at": now_iso()})
|
||||
if db["site_settings"].find_one(key=key) is None:
|
||||
db["site_settings"].insert({"uid": f"default_{key}", "key": key, "value": value, "updated_at": now_iso()})
|
||||
|
||||
|
||||
def _seed_notification_key():
|
||||
|
||||
Reference in New Issue
Block a user