This commit is contained in:
Aevann1 2021-09-23 01:41:51 +02:00
parent 7a567de4a9
commit 447ae44a4f
6 changed files with 89 additions and 67 deletions

View file

@ -743,7 +743,7 @@ def settings_name_change(v):
v=v,
error=f"Username `{new_name}` is already in use.")
v=g.db.query(User).with_for_update().options(lazyload('*')).options(lazyload('*')).filter_by(id=v.id).first()
v=g.db.query(User).with_for_update().options(lazyload('*')).filter_by(id=v.id).first()
v.username=new_name
v.name_changed_utc=int(time.time())