mirror of
https://github.com/OCA/report-print-send.git
synced 2025-02-16 07:11:31 +02:00
[13.0][FIX] printer_zpl2: pylint disable fix
This commit is contained in:
committed by
Nils Hamerlinck
parent
546b6c7099
commit
70a75c6573
@@ -94,7 +94,7 @@ class PrintingLabelZpl2(models.Model):
|
|||||||
def check_recursion(self):
|
def check_recursion(self):
|
||||||
cr = self._cr
|
cr = self._cr
|
||||||
self.flush(["component_ids"])
|
self.flush(["component_ids"])
|
||||||
query = ( # pylint: disable=E8103
|
query = (
|
||||||
'SELECT "{}", "{}" FROM "{}" '
|
'SELECT "{}", "{}" FROM "{}" '
|
||||||
'WHERE "{}" IN %s AND "{}" IS NOT NULL'.format(
|
'WHERE "{}" IN %s AND "{}" IS NOT NULL'.format(
|
||||||
"label_id",
|
"label_id",
|
||||||
@@ -109,7 +109,7 @@ class PrintingLabelZpl2(models.Model):
|
|||||||
preds = defaultdict(set) # transitive closure of predecessors
|
preds = defaultdict(set) # transitive closure of predecessors
|
||||||
todo, done = set(self.ids), set()
|
todo, done = set(self.ids), set()
|
||||||
while todo:
|
while todo:
|
||||||
cr.execute(query, [tuple(todo)])
|
cr.execute(query, [tuple(todo)]) # pylint: disable=E8103
|
||||||
done.update(todo)
|
done.update(todo)
|
||||||
todo.clear()
|
todo.clear()
|
||||||
for id1, id2 in cr.fetchall():
|
for id1, id2 in cr.fetchall():
|
||||||
|
|||||||
Reference in New Issue
Block a user