fix coordinates sql
This commit is contained in:
@@ -40,7 +40,7 @@ def delete_junction(name: str, id: str) -> ChangeSet:
|
|||||||
pattern = 'NULL' if row['pattern'] == None else row['pattern']
|
pattern = 'NULL' if row['pattern'] == None else row['pattern']
|
||||||
pattern = f'"{pattern}"' if pattern != 'NULL' else 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()
|
row = cur.fetchone()
|
||||||
if row == None:
|
if row == None:
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user