Skip to content

Commit

Permalink
Skeleton export: fix SQL parameterization syntax error
Browse files Browse the repository at this point in the history
Thanks to @acardona for reporting this problem.
  • Loading branch information
tomka committed Jul 9, 2024
1 parent a85907b commit 0973ddb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion django/applications/catmaid/control/skeletonexport.py
Original file line number Diff line number Diff line change
Expand Up @@ -665,7 +665,7 @@ def _compact_skeleton(project_id, skeleton_id, with_connectors=True,
if with_connectors or with_tags or with_annotations:
# postgres is caching this query
cursor.execute("""
SELECT relation_name, id FROM relation WHERE project_id={project_id}
SELECT relation_name, id FROM relation WHERE project_id=%(project_id)s
""", {
'project_id': project_id,
})
Expand Down

0 comments on commit 0973ddb

Please sign in to comment.