Fix build error

This commit is contained in:
wqy
2024-01-13 15:02:22 +08:00
parent 37f5210ab9
commit 44edeffad9
25 changed files with 43 additions and 40 deletions

View File

@@ -191,7 +191,7 @@ def inp_in_tank(line: str) -> str:
overflow = f"'{overflow}'" if overflow != None else 'null'
desc = str(tokens[-1]) if has_desc else None
return f"insert into _node (id, type) values ('{id}', 'tank');insert into tanks (id, elevation, init_level, min_level, max_level, diameter, min_vol, vol_curve, overflow) values ('{id}', {elevation}, {init_level}, {min_level}, {max_level}, {diameter}, {min_vol}, {vol_curve}, {overflow});"
return str(f"insert into _node (id, type) values ('{id}', 'tank');insert into tanks (id, elevation, init_level, min_level, max_level, diameter, min_vol, vol_curve, overflow) values ('{id}', {elevation}, {init_level}, {min_level}, {max_level}, {diameter}, {min_vol}, {vol_curve}, {overflow});")
def inp_out_tank(name: str) -> list[str]: