From 0973ddb5d22e5accb305e5d64769538034629311 Mon Sep 17 00:00:00 2001 From: Tom Kazimiers Date: Tue, 9 Jul 2024 11:27:57 +0200 Subject: [PATCH] Skeleton export: fix SQL parameterization syntax error Thanks to @acardona for reporting this problem. --- django/applications/catmaid/control/skeletonexport.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/applications/catmaid/control/skeletonexport.py b/django/applications/catmaid/control/skeletonexport.py index 2fde21fdc5..d6a99b6dcb 100644 --- a/django/applications/catmaid/control/skeletonexport.py +++ b/django/applications/catmaid/control/skeletonexport.py @@ -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, })