mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-03 18:01:08 -05:00
initial
This commit is contained in:
@@ -3,7 +3,7 @@ from datetime import timedelta
|
|||||||
|
|
||||||
from flask import current_app
|
from flask import current_app
|
||||||
from sqlalchemy import Float, cast, select
|
from sqlalchemy import Float, cast, select
|
||||||
from sqlalchemy.orm import joinedload
|
from sqlalchemy.orm import joinedload, Session
|
||||||
from sqlalchemy.sql.expression import and_, asc, case, func
|
from sqlalchemy.sql.expression import and_, asc, case, func
|
||||||
|
|
||||||
from app import db
|
from app import db
|
||||||
@@ -51,7 +51,7 @@ from app.utils import (
|
|||||||
|
|
||||||
|
|
||||||
def dao_fetch_all_services(only_active=False):
|
def dao_fetch_all_services(only_active=False):
|
||||||
|
with Session() as session:
|
||||||
stmt = (
|
stmt = (
|
||||||
select(Service)
|
select(Service)
|
||||||
.order_by(asc(Service.created_at))
|
.order_by(asc(Service.created_at))
|
||||||
|
|||||||
Reference in New Issue
Block a user