diff --git a/files/classes/user.py b/files/classes/user.py index 2fc831601..b42ebf20a 100644 --- a/files/classes/user.py +++ b/files/classes/user.py @@ -22,6 +22,7 @@ class User(Base, Stndrd, Age_times): id = Column(Integer, primary_key=True) username = Column(String) namecolor = Column(String, default='ff66ac') + background = Column(String) customtitle = Column(String) customtitleplain = Column(String) titlecolor = Column(String, default='ff66ac') diff --git a/files/routes/settings.py b/files/routes/settings.py index 39dbdeed6..9f75400a8 100644 --- a/files/routes/settings.py +++ b/files/routes/settings.py @@ -22,6 +22,10 @@ COINS_NAME = environ.get("COINS_NAME").strip() def settings_profile_post(v): updated = False + if request.values.get("background", v.background) != v.background: + updated = True + v.background= request.values.get("background", None) + if request.values.get("slurreplacer", v.slurreplacer) != v.slurreplacer: updated = True v.slurreplacer = request.values.get("slurreplacer", None) == 'true' diff --git a/files/templates/default.html b/files/templates/default.html index fa38198a6..5bcb98e18 100644 --- a/files/templates/default.html +++ b/files/templates/default.html @@ -1001,8 +1001,9 @@ -
-