mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-01 23:55:58 -05:00
initial
This commit is contained in:
@@ -64,9 +64,8 @@ def dao_fetch_all_services(only_active=False):
|
|||||||
.order_by(asc(Service.created_at))
|
.order_by(asc(Service.created_at))
|
||||||
.options(joinedload(Service.users))
|
.options(joinedload(Service.users))
|
||||||
)
|
)
|
||||||
if only_active:
|
result = db.session.execute(stmt)
|
||||||
stmt = stmt.filter(Service.active)
|
return result.scalars().all()
|
||||||
return db.session.execute(stmt).scalars().all()
|
|
||||||
|
|
||||||
|
|
||||||
def get_services_by_partial_name(service_name):
|
def get_services_by_partial_name(service_name):
|
||||||
|
|||||||
Reference in New Issue
Block a user