remotes/1693045480750635534/spooky-22
Aevann1 2021-12-30 22:57:45 +02:00
parent ce423acf4a
commit 9bbfe1b73d
1 changed files with 3 additions and 2 deletions

View File

@ -52,6 +52,9 @@ def settings_profile_post(v):
if request.content_length > 8 * 1024 * 1024: return {"error":"Max file size is 8 MB."}, 413
elif request.content_length > 4 * 1024 * 1024: return {"error":"Max file size is 4 MB."}, 413
if not v or v.oldsite: template = ''
else: template = 'CHRISTMAS/'
updated = False
if request.values.get("background", v.background) != v.background:
@ -326,8 +329,6 @@ def settings_profile_post(v):
v.bio_html=bio_html
g.db.add(v)
g.db.commit()
if not v or v.oldsite: template = ''
else: template = 'CHRISTMAS/'
return render_template(f"{template}settings_profile.html",
v=v,
msg="Your bio has been updated.")