From 7455fc25bb4fa263ef2896756b172590d970c433 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E7=90=BC=E9=92=B0?= Date: Thu, 15 Sep 2022 13:55:50 +0800 Subject: [PATCH] fix coordinates sql --- api/s2_junctions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/s2_junctions.py b/api/s2_junctions.py index 6ba6a71..41a4398 100644 --- a/api/s2_junctions.py +++ b/api/s2_junctions.py @@ -40,7 +40,7 @@ def delete_junction(name: str, id: str) -> ChangeSet: pattern = 'NULL' if row['pattern'] == None else row['pattern'] pattern = f'"{pattern}"' if pattern != 'NULL' else pattern - cur.execute(f"select * from coordinates where id = '{id}'") + cur.execute(f"select * from coordinates where node = '{id}'") row = cur.fetchone() if row == None: return