Junction type is fixed enum value
This commit is contained in:
@@ -53,7 +53,7 @@ def delete_junction(name: str, id: str) -> ChangeSet:
|
||||
cur.execute(sql)
|
||||
|
||||
redo = sql.replace("'", '"')
|
||||
undo = f'insert into _node (id, type) values ("{id}", "{type}");'
|
||||
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 coordinates (node, coord) values ('{id}', '{coord}');"
|
||||
add_operation(name, redo, undo)
|
||||
|
||||
Reference in New Issue
Block a user