mirror of https://gitlab.com/pamhyr/pamhyr2
tables load fixed
parent
c7eb10884a
commit
5047dbc85e
|
|
@ -89,6 +89,7 @@ class D90AdisTSSpec(SQLSubModel):
|
|||
f"WHERE d90_default = {data['d90_default_id']} "
|
||||
)
|
||||
|
||||
if table is not None:
|
||||
for row in table:
|
||||
id = row[0]
|
||||
name = row[2]
|
||||
|
|
|
|||
|
|
@ -93,6 +93,7 @@ class DIFAdisTSSpec(SQLSubModel):
|
|||
f"WHERE dif_default = {data['dif_default_id']} "
|
||||
)
|
||||
|
||||
if table is not None:
|
||||
for row in table:
|
||||
id = row[0]
|
||||
method = row[2]
|
||||
|
|
|
|||
|
|
@ -80,7 +80,7 @@ class InitialConditionsAdisTS(SQLSubModel):
|
|||
@classmethod
|
||||
def _db_update(cls, execute, version):
|
||||
major, minor, release = version.strip().split(".")
|
||||
if major == minor == "0":
|
||||
if major == 0 and minor < 1:
|
||||
if int(release) < 6:
|
||||
cls._db_create(execute)
|
||||
|
||||
|
|
|
|||
|
|
@ -80,7 +80,7 @@ class ICAdisTSSpec(SQLSubModel):
|
|||
@classmethod
|
||||
def _db_update(cls, execute, version):
|
||||
major, minor, release = version.strip().split(".")
|
||||
if major == minor == "0":
|
||||
if major == 0 and minor < 1:
|
||||
if int(release) < 6:
|
||||
cls._db_create(execute)
|
||||
|
||||
|
|
@ -97,6 +97,7 @@ class ICAdisTSSpec(SQLSubModel):
|
|||
f"WHERE ic_default = {data['ic_default_id']} "
|
||||
)
|
||||
|
||||
if table is not None:
|
||||
for row in table:
|
||||
id = row[0]
|
||||
name = row[2]
|
||||
|
|
|
|||
Loading…
Reference in New Issue