master
Aevann1 2022-01-02 23:09:48 +02:00
parent c18d2155ab
commit 69f860aa4c
2 changed files with 6 additions and 0 deletions

View File

@ -55,6 +55,7 @@ class User(Base):
marseyawarded = Column(Integer)
longpost = Column(Integer)
unblockable = Column(Boolean)
compact = Column(Boolean)
bird = Column(Integer)
email = deferred(Column(String))
css = deferred(Column(String))

View File

@ -364,6 +364,11 @@ def settings_profile_post(v):
updated = True
else: abort(400)
compact = request.values.get("compact")
if compact:
v.compact = compact
updated = True
theme = request.values.get("theme")
if theme:
if theme in ["classic","transparent", "win98", "dark", "light", "coffee", "tron", "4chan", "midnight"]: