Skip to content

Commit

Permalink
Merge branch 'hotfixes' of github.com:hotosm/fmtm into hotfixes
Browse files Browse the repository at this point in the history
  • Loading branch information
nrjadkry committed Oct 12, 2023
2 parents 9efea73 + ed85566 commit b874737
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/backend/app/tasks/tasks_routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit b874737

Please sign in to comment.