Fix delete_junction undo sql
This commit is contained in:
@@ -54,8 +54,8 @@ def delete_junction(name: str, id: str) -> ChangeSet:
|
|||||||
|
|
||||||
redo = sql.replace("'", '"')
|
redo = sql.replace("'", '"')
|
||||||
undo = f'insert into _node (id, type) values ("{id}", "JUNCTION");'
|
undo = f'insert into _node (id, type) values ("{id}", "JUNCTION");'
|
||||||
undo += f" insert into junctions (id, elevation, demand, pattern) values ('{id}', {elevation}, {demand}, {pattern});"
|
undo += f' insert into junctions (id, elevation, demand, pattern) values ("{id}", {elevation}, {demand}, {pattern});'
|
||||||
undo += f" insert into coordinates (node, coord) values ('{id}', '{coord}');"
|
undo += f' insert into coordinates (node, coord) values ("{id}", "{coord}");'
|
||||||
add_operation(name, redo, undo)
|
add_operation(name, redo, undo)
|
||||||
|
|
||||||
change = ChangeSet()
|
change = ChangeSet()
|
||||||
|
|||||||
Reference in New Issue
Block a user