Browse Source

Correction du ticket #15

master
Dark-Storm 8 months ago
parent
commit
936d0e2e8e
Signed by: Dark-Storm <l.gatin@neuf.fr> GPG Key ID: F61F10FA138E797C
2 changed files with 2 additions and 2 deletions
  1. 1
    1
      app/models/users.py
  2. 1
    1
      app/routes/account.py

+ 1
- 1
app/models/users.py View File

@@ -166,7 +166,7 @@ class Member(User, db.Model):
if "password" in data:
self.set_password(data["password"])
if "bio" in data:
self.biography = data["bio"]
self.bio = data["bio"]
if "signature" in data:
self.signature = data["signature"]
if "birthday" in data:

+ 1
- 1
app/routes/account.py View File

@@ -19,7 +19,7 @@ def account():
password = form.password.data or None,
birthday = form.birthday.data,
signature = form.signature.data,
biography = form.biography.data,
bio = form.biography.data,
newsletter = form.newsletter.data
)
db.session.merge(current_user)

Loading…
Cancel
Save