This commit is contained in:
Aevann1 2021-11-30 15:09:17 +02:00
parent 9552e3b01b
commit 71325bcf57
10 changed files with 53 additions and 29 deletions

View file

@ -155,6 +155,13 @@ def settings_profile_post(v):
msg="Your bio has been updated.")
elif request.values.get("bio") == "":
v.bio = None
v.bio_html = None
g.db.add(v)
g.db.commit()
return render_template("settings_profile.html", v=v, msg="Your bio has been updated.")
elif request.values.get("sig") == "":
v.sig = None
v.sig_html = None