mirror of
https://gitlab.com/pamhyr/pamhyr2.git
synced 2026-10-30 03:20:41 +01:00
Results: Fix save method.
This commit is contained in:
1 parent
936bfc753a
commit
381bc37d13
6 files changed
+92
-48
No files matched your search
+8
-4
@@ -353,7 +353,10 @@ class Study(SQLModel):
|
||||
)
|
||||
)
|
||||
|
||||
data = {"status": new.status}
|
||||
data = {
|
||||
"study": new,
|
||||
"status": new.status
|
||||
}
|
||||
|
||||
# Scenarios
|
||||
new.scenarios = Scenarios._db_load(
|
||||
@@ -381,10 +384,11 @@ class Study(SQLModel):
|
||||
|
||||
# Load river data
|
||||
new._river = River._db_load(
|
||||
sql_exec,
|
||||
data=data
|
||||
sql_exec, data=data
|
||||
)
|
||||
|
||||
new._river._db_load_results(sql_exec, data=data)
|
||||
|
||||
return new
|
||||
|
||||
def _save(self, progress=None):
|
||||
@@ -442,7 +446,7 @@ class Study(SQLModel):
|
||||
)
|
||||
self.commit()
|
||||
|
||||
def sql_save_request_count(self):
|
||||
def sql_save_request_count(self, *args, **kargs):
|
||||
return self._count()
|
||||
|
||||
def _count(self):
|
||||
|
||||
Reference in new issue
Block a user