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
dc08727d
Commit
dc08727d
authored
Jan 21, 2016
by
LE GAC Renaud
Browse files
Apply pylint rules on selector.py.
parent
ce60e53b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
modules/selector.py
modules/selector.py
+4
-3
No files found.
modules/selector.py
View file @
dc08727d
...
...
@@ -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
...
...
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