Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
tev
plugin_event
Commits
442bd3b4
Commit
442bd3b4
authored
Jun 20, 2016
by
LE GAC Renaud
Browse files
Fix a bug in SelectorActiveItem.query.
parent
ec33aad8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
modules/selector.py
modules/selector.py
+3
-3
No files found.
modules/selector.py
View file @
442bd3b4
...
...
@@ -81,10 +81,10 @@ class SelectorActiveItems(Selector):
query
=
Selector
.
query
(
self
,
table
)
if
self
.
_period_start
and
self
.
_period_end
:
q
1
=
table
.
start_date
<=
self
.
_period_end
q2
=
table
.
end_date
is
None
q
uery
&
=
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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment