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()