mirror of https://gitlab.com/pamhyr/pamhyr2
Compare commits
2 Commits
7b88d955e5
...
e86b84b0b9
| Author | SHA1 | Date |
|---|---|---|
|
|
e86b84b0b9 | |
|
|
e08d212986 |
|
|
@ -83,6 +83,7 @@ class D90AdisTSSpec(SQLSubModel):
|
|||
def _db_update_to_0_2_0(cls, execute, data):
|
||||
table = "d90_spec"
|
||||
table_new = "d90_adists_spec"
|
||||
reachs = data['id2pid']['river_reach']
|
||||
|
||||
cls.update_db_add_pamhyr_id(execute, table, data)
|
||||
Scenario.update_db_add_scenario(execute, table)
|
||||
|
|
@ -102,6 +103,7 @@ class D90AdisTSSpec(SQLSubModel):
|
|||
execute(f"ALTER TABLE {table_new}_tmp RENAME TO {table_new}")
|
||||
|
||||
cls._db_update_to_0_2_0_set_d90_pid(execute, data)
|
||||
cls._db_update_to_0_2_0_set_reach_pid(execute, table_new, reachs)
|
||||
|
||||
@classmethod
|
||||
def _db_update_to_0_2_0_set_d90_pid(cls, execute, data):
|
||||
|
|
|
|||
|
|
@ -21,12 +21,13 @@ import os
|
|||
from copy import deepcopy
|
||||
from datetime import datetime
|
||||
|
||||
from Model.Tools.PamhyrDB import SQLSubModel
|
||||
from Model.Results.River.RiverAdisTS import River
|
||||
|
||||
logger = logging.getLogger()
|
||||
|
||||
|
||||
class Results(object):
|
||||
class Results(SQLSubModel):
|
||||
def __init__(self, study=None, solver=None,
|
||||
repertory="", name="0", type_pol=None):
|
||||
self._study = study
|
||||
|
|
@ -90,3 +91,6 @@ class Results(object):
|
|||
self._repertory,
|
||||
qlog=None,
|
||||
)
|
||||
|
||||
def _db_save(self, execute, data=None):
|
||||
return False
|
||||
|
|
|
|||
Loading…
Reference in New Issue