mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-04 03:38:26 -04:00
12 lines
196 B
Python
12 lines
196 B
Python
|
|
from app import db
|
||
|
|
from app.models import Roles
|
||
|
|
|
||
|
|
|
||
|
|
def insert_role(role):
|
||
|
|
db.session.add(role)
|
||
|
|
db.session.commit()
|
||
|
|
|
||
|
|
|
||
|
|
def get_role_by_id(id):
|
||
|
|
return Roles.query.filter_by(id=id).first()
|