Adists: Fix update from id to pamhyr_id.

This commit is contained in:
parouby committed 2025-08-18 13:59:12 +02:00
1 parent 2faebfd402
commit 0df813b0d2
6 files changed
+75 -9

No files matched your search

+3 -3
View File
@@ -121,15 +121,15 @@ class DIFAdisTSSpec(SQLSubModel):
def _db_update_to_0_2_0_set_dif_pid(cls, execute, data):
pid_dif = data["id2pid"]["dif_adists"]
els = execute(
f"SELECT pamhyr_id, dif FROM dif_adists_spec"
"SELECT pamhyr_id, dif FROM dif_adists_spec"
)
for row in els:
it = iter(row)
pid = next(it)
pol_id = next(it)
dif_id = next(it)
if pol_id == -1:
if dif_id == -1:
continue
execute(