mirror of https://gitlab.com/pamhyr/pamhyr2
try fix ci pipeline
parent
7a91969f41
commit
51dd6d27c5
|
|
@ -300,6 +300,11 @@ class BoundaryConditionAdisTS(SQLSubModel):
|
||||||
if pol_id == -1:
|
if pol_id == -1:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
if pol_id not in pid_pol:
|
||||||
|
# ⚠️ cas important : probablement déjà migré
|
||||||
|
print(f"[WARN] pol_id {pol_id} not in pid_pol → probably already migrated")
|
||||||
|
continue
|
||||||
|
|
||||||
execute(
|
execute(
|
||||||
f"UPDATE boundary_condition_adists " +
|
f"UPDATE boundary_condition_adists " +
|
||||||
f"SET pollutant = {pid_pol[pol_id]} " +
|
f"SET pollutant = {pid_pol[pol_id]} " +
|
||||||
|
|
|
||||||
|
|
@ -311,6 +311,11 @@ class SQLSubModel(PamhyrID):
|
||||||
if node_id == -1:
|
if node_id == -1:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
if node_id not in nodes:
|
||||||
|
# ⚠️ cas important : probablement déjà migré
|
||||||
|
print(f"[WARN] node_id {node_id} not in nodes → probably already migrated")
|
||||||
|
continue
|
||||||
|
|
||||||
execute(
|
execute(
|
||||||
f"UPDATE {table} " +
|
f"UPDATE {table} " +
|
||||||
f"SET node = {nodes[node_id]} " +
|
f"SET node = {nodes[node_id]} " +
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue