Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
AStA
Digitaler 3G-Nachweis
Commits
900ff312
Commit
900ff312
authored
Jan 19, 2022
by
Leon Tappe
🔥
Browse files
fix POST setting
parent
c618d607
Changes
1
Hide whitespace changes
Inline
Side-by-side
backend/website/routes.py
View file @
900ff312
...
...
@@ -583,7 +583,7 @@ def admin_settings():
return
get_settings
()
if
request
.
method
==
'POST'
:
setting
=
Setting
(
da
y
=
request
.
json
[
'key'
],
color_id
=
request
.
json
[
'value'
])
ke
y
=
request
.
json
[
'key'
],
value
=
request
.
json
[
'value'
])
try
:
db
.
session
.
add
(
setting
)
db
.
session
.
commit
()
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment