Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Carlos Ribas
rnacentral-webcode
Commits
564bcc67
Commit
564bcc67
authored
Jul 16, 2021
by
carlosribas
Browse files
Bug fix
parent
14b22d96
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
rnacentral/sequence_search/views.py
rnacentral/sequence_search/views.py
+9
-3
No files found.
rnacentral/sequence_search/views.py
View file @
564bcc67
...
...
@@ -167,11 +167,17 @@ def dashboard(request):
for
index
in
range
(
len
(
expert_db_results
)):
for
key
in
expert_db_results
[
index
]:
if
expert_db_results
[
index
][
key
][
-
1
].
keys
()[
0
]
==
current_month
:
get_current_month
=
list
(
expert_db_results
[
index
][
key
][
-
1
])
if
list
(
expert_db_results
[
index
][
key
])
else
None
get_current_month
=
get_current_month
.
pop
()
if
get_current_month
else
None
get_last_month
=
list
(
expert_db_results
[
index
][
key
][
-
2
])
if
list
(
expert_db_results
[
index
][
key
])
else
None
get_last_month
=
get_last_month
.
pop
()
if
get_last_month
else
None
if
get_current_month
==
current_month
:
current_month_pie_chart
.
append
({
key
:
expert_db_results
[
index
][
key
][
-
1
][
current_month
]})
if
expert_db_results
[
index
][
key
][
-
1
].
keys
()[
0
]
==
last_month
:
if
get_current_month
==
last_month
:
last_month_pie_chart
.
append
({
key
:
expert_db_results
[
index
][
key
][
-
1
][
last_month
]})
if
expert_db_results
[
index
][
key
][
-
2
].
keys
()[
0
]
==
last_month
:
if
get_last_month
==
last_month
:
last_month_pie_chart
.
append
({
key
:
expert_db_results
[
index
][
key
][
-
2
][
last_month
]})
context
=
{
...
...
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