mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-03 21:21:14 -04:00
16 lines
248 B
Python
16 lines
248 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()
|
|
|
|
|
|
def get_all_users():
|
|
return Users.query.all()
|