mirror of
https://gitlab.com/pamhyr/pamhyr2.git
synced 2026-10-30 03:20:41 +01:00
pamhyr: Rename '_sql_*' function to '_db_*'.
This commit is contained in:
1 parent
8d92fbbdac
commit
ea2dbfba3e
23 files changed
+186
-186
No files matched your search
@@ -30,13 +30,13 @@ class InitialConditionsDict(PamhyrModelDict):
|
||||
]
|
||||
|
||||
@classmethod
|
||||
def _sql_load(cls, execute, data=None):
|
||||
def _db_load(cls, execute, data=None):
|
||||
new = cls(status=data["status"])
|
||||
|
||||
for reach in data["edges"]:
|
||||
data["reach"] = reach
|
||||
|
||||
ic = InitialConditions._sql_load(
|
||||
ic = InitialConditions._db_load(
|
||||
execute,
|
||||
data=data
|
||||
)
|
||||
@@ -46,7 +46,7 @@ class InitialConditionsDict(PamhyrModelDict):
|
||||
|
||||
return new
|
||||
|
||||
def _sql_save(self, execute, data=None):
|
||||
def _db_save(self, execute, data=None):
|
||||
ok = True
|
||||
if data is None:
|
||||
data = {}
|
||||
@@ -55,7 +55,7 @@ class InitialConditionsDict(PamhyrModelDict):
|
||||
|
||||
for reach in self._dict:
|
||||
data["reach"] = reach
|
||||
ok &= self._dict[reach]._sql_save(execute, data)
|
||||
ok &= self._dict[reach]._db_save(execute, data)
|
||||
|
||||
return ok
|
||||
|
||||
|
||||
Reference in new issue
Block a user