소스 검색

quick updates

control 3 년 전
부모
커밋
8d8d3a4e48
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      app/logic.py

+ 1 - 0
app/logic.py

@@ -22,6 +22,7 @@ def home():
         if username:
             nusern_dbcall = User.query.filter_by(id=current_user.id).first()
             nusern_dbcall.username = username
+            db.session.commit()
             flash('Username updated!', category='success')
         elif passwd and passwdc:
             if passwd == passwdc: