From ed855662db8794666d71548eae90501fe169d34b Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Thu, 12 Oct 2023 09:26:35 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/backend/app/tasks/tasks_routes.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/backend/app/tasks/tasks_routes.py b/src/backend/app/tasks/tasks_routes.py index 1758a153c1..e45883b68a 100644 --- a/src/backend/app/tasks/tasks_routes.py +++ b/src/backend/app/tasks/tasks_routes.py @@ -172,9 +172,11 @@ async def task_features_count( # Assemble the final data list data = [] for x in odk_details: - feature_count_query = text(f""" + feature_count_query = text( + f""" select count(*) from features where project_id = {project_id} and task_id = {x['xmlFormId']} - """) + """ + ) result = db.execute(feature_count_query) feature_count = result.fetchone()