mirror of https://gitlab.com/pamhyr/pamhyr2
Model, geometry: Monir change.
parent
d76b09f224
commit
8ca1ac8fcf
|
|
@ -49,6 +49,9 @@ class Stricklers(SQLSubModel):
|
||||||
"FROM stricklers"
|
"FROM stricklers"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if table is None:
|
||||||
|
return None
|
||||||
|
|
||||||
for row in table:
|
for row in table:
|
||||||
name = row[0]
|
name = row[0]
|
||||||
comment = row[1]
|
comment = row[1]
|
||||||
|
|
|
||||||
|
|
@ -38,8 +38,7 @@ class StricklersList(SQLSubModel):
|
||||||
return new
|
return new
|
||||||
|
|
||||||
def _sql_save(self, execute, data = None):
|
def _sql_save(self, execute, data = None):
|
||||||
if len(self._stricks) != 0:
|
execute("DELETE FROM stricklers")
|
||||||
execute("DELETE FROM stricklers")
|
|
||||||
|
|
||||||
objs = self._stricks
|
objs = self._stricks
|
||||||
return self._save_submodel(execute, objs, data)
|
return self._save_submodel(execute, objs, data)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue