Commit dc08727d authored by LE GAC Renaud's avatar LE GAC Renaud
Browse files

Apply pylint rules on selector.py.

parent ce60e53b
......@@ -79,9 +79,10 @@ class SelectorActiveItems(Selector):
query = Selector.query(self, table)
if self._period_start and self._period_end:
q = table.start_date <= self._period_end
q = (q) & ((table.end_date == None) | (table.end_date >= self._period_start))
query = (query) & (q)
q1 = table.start_date <= self._period_end
q2 = table.end_date is None
q3 = table.end_date >= self._period_start
query &= (q1) & (q2 | q3)
return query
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment