Commit 442bd3b4 authored by LE GAC Renaud's avatar LE GAC Renaud
Browse files

Fix a bug in SelectorActiveItem.query.

parent ec33aad8
......@@ -81,10 +81,10 @@ class SelectorActiveItems(Selector):
query = Selector.query(self, table)
if self._period_start and self._period_end:
q1 = table.start_date <= self._period_end
q2 = table.end_date is None
query &= table.start_date <= self._period_end
q2 = table.end_date == None
q3 = table.end_date >= self._period_start
query &= (q1) & (q2 | q3)
query &= (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