mirror of
https://gitlab.com/pamhyr/pamhyr2.git
synced 2026-10-30 03:20:41 +01:00
pep8: Fixes.
This commit is contained in:
1 parent
592c2c9a72
commit
6081b09267
3 files changed
+9
-10
No files matched your search
@@ -88,9 +88,7 @@ class SQLModel(SQL):
|
||||
raise NotImplementedMethodeError(self, self._update)
|
||||
|
||||
def _save_submodel(self, objs, data=None):
|
||||
progress = lambda: None
|
||||
if data is not None:
|
||||
progress = data
|
||||
progress = data if data is not None else lambda: None
|
||||
|
||||
def fn(sql):
|
||||
res = self.execute(
|
||||
@@ -116,10 +114,10 @@ class SQLModel(SQL):
|
||||
|
||||
def _save_count(self, objs, data=None):
|
||||
counter = {
|
||||
"insert" : 0,
|
||||
"update" : 0,
|
||||
"delete" : 0,
|
||||
"other" : 0,
|
||||
"insert": 0,
|
||||
"update": 0,
|
||||
"delete": 0,
|
||||
"other": 0,
|
||||
}
|
||||
|
||||
def fn(sql):
|
||||
|
||||
Reference in new issue
Block a user