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