forked from rDrama/rDrama
fsd
parent
01f8f67f62
commit
34f55ed0fa
|
@ -98,6 +98,10 @@ def settings_profile_post(v):
|
||||||
updated = True
|
updated = True
|
||||||
v.teddit = request.values.get("teddit", None) == 'true'
|
v.teddit = request.values.get("teddit", None) == 'true'
|
||||||
|
|
||||||
|
elif request.values.get("compact", v.compact) != v.compact:
|
||||||
|
updated = True
|
||||||
|
v.teddit = request.values.get("compact", None) == 'true'
|
||||||
|
|
||||||
elif request.values.get("nitter", v.nitter) != v.nitter:
|
elif request.values.get("nitter", v.nitter) != v.nitter:
|
||||||
updated = True
|
updated = True
|
||||||
v.nitter = request.values.get("nitter", None) == 'true'
|
v.nitter = request.values.get("nitter", None) == 'true'
|
||||||
|
@ -364,11 +368,6 @@ def settings_profile_post(v):
|
||||||
updated = True
|
updated = True
|
||||||
else: abort(400)
|
else: abort(400)
|
||||||
|
|
||||||
compact = request.values.get("compact")
|
|
||||||
if compact:
|
|
||||||
v.compact = compact
|
|
||||||
updated = True
|
|
||||||
|
|
||||||
theme = request.values.get("theme")
|
theme = request.values.get("theme")
|
||||||
if theme:
|
if theme:
|
||||||
if theme in ["classic","transparent", "win98", "dark", "light", "coffee", "tron", "4chan", "midnight"]:
|
if theme in ["classic","transparent", "win98", "dark", "light", "coffee", "tron", "4chan", "midnight"]:
|
||||||
|
|
Loading…
Reference in New Issue