dfs
This commit is contained in:
parent
05698b4e7b
commit
8c874f7ceb
1 changed files with 3 additions and 2 deletions
|
@ -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
|
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
|
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
|
updated = False
|
||||||
|
|
||||||
if request.values.get("background", v.background) != v.background:
|
if request.values.get("background", v.background) != v.background:
|
||||||
|
@ -326,8 +329,6 @@ def settings_profile_post(v):
|
||||||
v.bio_html=bio_html
|
v.bio_html=bio_html
|
||||||
g.db.add(v)
|
g.db.add(v)
|
||||||
g.db.commit()
|
g.db.commit()
|
||||||
if not v or v.oldsite: template = ''
|
|
||||||
else: template = 'CHRISTMAS/'
|
|
||||||
return render_template(f"{template}settings_profile.html",
|
return render_template(f"{template}settings_profile.html",
|
||||||
v=v,
|
v=v,
|
||||||
msg="Your bio has been updated.")
|
msg="Your bio has been updated.")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue