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