Esempio n. 1
0
 def get():
     userapp = USR_Session.query(User).all()
     for user in userapp:
         return user
Esempio n. 2
0
 def save(username, email, password):
     user = User(username=username,
                 email=email,
                 password=bcrypt.generate_password_hash(password))
     USR_Session.add(user)
     USR_Session.commit()
Esempio n. 3
0
 def get_user(username):
     user = USR_Session.query(User).filter_by(username=User.username).first()
     return user