mirror of
https://gitlab.com/pamhyr/pamhyr2.git
synced 2026-10-30 03:20:41 +01:00
DB: Continue to prepare update 0.1.0.
This commit is contained in:
1 parent
32cda58064
commit
1dfdcb0413
5 files changed
+43
No files matched your search
@@ -216,6 +216,9 @@ class SQLSubModel(PamhyrID):
|
||||
pid = next(it)
|
||||
node_id = next(it)
|
||||
|
||||
if node_id == -1:
|
||||
return
|
||||
|
||||
execute(
|
||||
f"UPDATE {table} " +
|
||||
f"SET node = {nodes[node_id]} " +
|
||||
@@ -233,6 +236,9 @@ class SQLSubModel(PamhyrID):
|
||||
pid = next(it)
|
||||
reach_id = next(it)
|
||||
|
||||
if reach_id == -1:
|
||||
return
|
||||
|
||||
execute(
|
||||
f"UPDATE {table} " +
|
||||
f"SET reach = {reachs[reach_id]} " +
|
||||
|
||||
Reference in new issue
Block a user