fix coordinates sql

This commit is contained in:
王琼钰
2022-09-15 13:55:50 +08:00
committed by coding.net
parent 679e50354f
commit 7455fc25bb

View File

@@ -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