Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
Carlos Ribas
rnacentral-webcode
Commits
e89a9c35
Commit
e89a9c35
authored
Apr 30, 2021
by
carlosribas
Browse files
Remove unused context
parent
ab59def4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
7 deletions
+0
-7
rnacentral/portal/views.py
rnacentral/portal/views.py
+0
-7
No files found.
rnacentral/portal/views.py
View file @
e89a9c35
...
...
@@ -137,12 +137,6 @@ def rna_view(request, upi, taxid=None):
except
AttributeError
:
summary_so_terms
=
''
# Check if r2dt-web is installed
path
=
os
.
path
.
join
(
settings
.
PROJECT_PATH
,
'rnacentral'
,
'portal'
,
'static'
,
'r2dt-web'
,
'dist'
,
'r2dt-web.js'
)
plugin_installed
=
True
if
os
.
path
.
isfile
(
path
)
else
False
context
=
{
'upi'
:
upi
,
'symbol_counts'
:
symbol_counts
,
...
...
@@ -158,7 +152,6 @@ def rna_view(request, upi, taxid=None):
'mirna_regulators'
:
rna
.
get_mirna_regulators
(
taxid
=
taxid
),
'annotations_from_other_species'
:
rna
.
get_annotations_from_other_species
(
taxid
=
taxid
),
'intact'
:
rna
.
get_intact
(
taxid
),
'plugin_installed'
:
plugin_installed
,
}
response
=
render
(
request
,
'portal/sequence.html'
,
{
'rna'
:
rna
,
'context'
:
context
})
# define canonical URL for Google
...
...
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