Need insert since it requires update later

This commit is contained in:
WQY\qiong
2023-03-24 21:17:22 +08:00
parent f44876427d
commit 7451cf9ddd
4 changed files with 2 additions and 7 deletions

View File

@@ -27,8 +27,6 @@ def get_tank(name: str, id: str) -> dict[str, Any]:
if t == None:
return {}
xy = get_node_coord(name, id)
if xy == {}:
xy = {'x': 0.0, 'y': 0.0}
d = {}
d['id'] = str(t['id'])
d['x'] = float(xy['x'])