mirror of
https://gitlab.com/pamhyr/pamhyr2.git
synced 2026-10-30 03:20:41 +01:00
Pamhyr2: Some fixes.
This commit is contained in:
1 parent
19d9a29459
commit
0d33072a7e
11 files changed
+40
-33
No files matched your search
@@ -81,8 +81,8 @@ class PointXYZ(Point, SQLSubModel):
|
||||
@classmethod
|
||||
def _db_update_to_0_1_0(cls, execute, data):
|
||||
table = "geometry_pointXYZ"
|
||||
reachs = data['id2pid']['sedimentary_layer']
|
||||
profiles = data['id2pid']['geometry_profileXYZ']
|
||||
id2pid = data['id2pid']
|
||||
profiles = id2pid['geometry_profileXYZ']
|
||||
|
||||
cls.update_db_add_pamhyr_id(execute, table, data)
|
||||
Scenario.update_db_add_scenario(execute, table)
|
||||
@@ -100,7 +100,10 @@ class PointXYZ(Point, SQLSubModel):
|
||||
execute(f"ALTER TABLE {table}_tmp RENAME TO {table}")
|
||||
|
||||
cls._db_update_to_0_1_0_set_profile_pid(execute, table, profiles)
|
||||
cls._db_update_to_0_1_0_set_sl_pid(execute, table, sl)
|
||||
|
||||
if 'sedimentary_layer' in id2pid:
|
||||
sl = id2pid['sedimentary_layer']
|
||||
cls._db_update_to_0_1_0_set_sl_pid(execute, table, sl)
|
||||
|
||||
@classmethod
|
||||
def _db_update_to_0_1_0_set_profile_pid(cls, execute, table, profiles):
|
||||
|
||||
Reference in new issue
Block a user