Results: Fix save method.

This commit is contained in:
parouby committed 2025-09-23 15:47:37 +02:00
1 parent 936bfc753a
commit 381bc37d13
6 files changed
+92 -48

No files matched your search

+8 -4
View File
@@ -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):