mirror of
https://github.com/GSA/notifications-api.git
synced 2026-08-24 00:06:16 -04:00
fix template folder dao
This commit is contained in:
@@ -21,12 +21,12 @@ from tests.app.db import create_template
|
|||||||
|
|
||||||
def template_query_count():
|
def template_query_count():
|
||||||
stmt = select(func.count()).select_from(Template)
|
stmt = select(func.count()).select_from(Template)
|
||||||
return db.session.execute(stmt).scalar or 0
|
return db.session.execute(stmt).scalar() or 0
|
||||||
|
|
||||||
|
|
||||||
def template_history_query_count():
|
def template_history_query_count():
|
||||||
stmt = select(func.count()).select_from(TemplateHistory)
|
stmt = select(func.count()).select_from(TemplateHistory)
|
||||||
return db.session.execute(stmt).scalar or 0
|
return db.session.execute(stmt).scalar() or 0
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.parametrize(
|
@pytest.mark.parametrize(
|
||||||
|
|||||||
Reference in New Issue
Block a user