mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-04 01:08:25 -04:00
You will need to run the /scripts/bootstrap.sh to create the database for test and the app.
12 lines
196 B
Python
12 lines
196 B
Python
from app import db
|
|
from app.models import Users
|
|
|
|
|
|
def insert_user(user):
|
|
db.session.add(user)
|
|
db.session.commit()
|
|
|
|
|
|
def get_user_by_id(id):
|
|
return Users.query.filter_by(id=id).first()
|