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
Docker-in-Docker (DinD) capabilities of public runners deactivated.
More info
Open sidebar
limbra
limbra
Commits
afedf45b
Commit
afedf45b
authored
Jan 20, 2016
by
LE GAC Renaud
Browse files
Fix anothers bugs in graph_tools.do_linechart, do_query.
parent
0274d5c2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
modules/graph_tools.py
modules/graph_tools.py
+6
-1
No files found.
modules/graph_tools.py
View file @
afedf45b
...
@@ -137,7 +137,9 @@ def do_linechart(publications, selector, target=None):
...
@@ -137,7 +137,9 @@ def do_linechart(publications, selector, target=None):
for
row
in
rows
:
for
row
in
rows
:
submitted
=
row
.
publications
.
submitted
submitted
=
row
.
publications
.
submitted
if
not
rx_submitted
.
match
(
submitted
):
# protection
if
is_month
and
not
rx_submitted
.
match
(
submitted
):
continue
continue
if
is_cumu
:
if
is_cumu
:
...
@@ -219,6 +221,9 @@ def do_query(publications, selector):
...
@@ -219,6 +221,9 @@ def do_query(publications, selector):
q_end
=
publications
.
submitted
[
0
:
4
]
<=
year_end
q_end
=
publications
.
submitted
[
0
:
4
]
<=
year_end
query
&=
((
q_start
)
&
(
q_end
))
query
&=
((
q_start
)
&
(
q_end
))
elif
year_end
and
not
year_start
:
query
&=
publications
.
submitted
[
0
:
4
]
<=
year_end
return
query
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