Commit 900ff312 authored by Leon Tappe's avatar Leon Tappe 🔥
Browse files

fix POST setting

parent c618d607
......@@ -583,7 +583,7 @@ def admin_settings():
return get_settings()
if request.method == 'POST':
setting = Setting(
day=request.json['key'], color_id=request.json['value'])
key=request.json['key'], value=request.json['value'])
try:
db.session.add(setting)
db.session.commit()
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment