From cd98c27de4d9eab3816df6a0811baabe519fce73 Mon Sep 17 00:00:00 2001 From: wqy Date: Thu, 15 Sep 2022 23:15:24 +0800 Subject: [PATCH] Format --- api/s2_junctions.py | 2 +- tjnetwork.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/api/s2_junctions.py b/api/s2_junctions.py index a4a37db..c8be1c1 100644 --- a/api/s2_junctions.py +++ b/api/s2_junctions.py @@ -55,7 +55,7 @@ def delete_junction(name: str, id: str) -> ChangeSet: redo = sql.replace("'", '"') 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}");' + undo += f' insert into coordinates (node, coord) values ("{id}", "{coord}");' add_operation(name, redo, undo) change = ChangeSet() diff --git a/tjnetwork.py b/tjnetwork.py index ed263be..9e24106 100644 --- a/tjnetwork.py +++ b/tjnetwork.py @@ -77,6 +77,7 @@ def commit_transaction(name: str) -> None: def abort_transaction(name: str) -> None: return api.abort_transaction(name) + ############################################################ # type ############################################################