Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
ippidb-web
Manage
Activity
Members
Labels
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
iPPIDB
ippidb-web
Commits
520ded06
Commit
520ded06
authored
7 years ago
by
Hervé MENAGER
Browse files
Options
Downloads
Patches
Plain Diff
filter by organism
Former-commit-id: ef24af993fc292025bf590d45c977dbe6b1b3a86
parent
a325722f
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ippisite/ippidb/views.py
+2
-0
2 additions, 0 deletions
ippisite/ippidb/views.py
with
2 additions
and
0 deletions
ippisite/ippidb/views.py
+
2
−
0
View file @
520ded06
...
@@ -195,6 +195,8 @@ def compound_list(request):
...
@@ -195,6 +195,8 @@ def compound_list(request):
compounds
=
compounds
.
filter
(
compoundaction__ppi__id__in
=
request
.
GET
.
getlist
(
'
ppi
'
))
compounds
=
compounds
.
filter
(
compoundaction__ppi__id__in
=
request
.
GET
.
getlist
(
'
ppi
'
))
if
request
.
GET
.
get
(
'
disease
'
):
if
request
.
GET
.
get
(
'
disease
'
):
compounds
=
compounds
.
filter
(
compoundaction__ppi__diseases__id__in
=
request
.
GET
.
getlist
(
'
disease
'
))
compounds
=
compounds
.
filter
(
compoundaction__ppi__diseases__id__in
=
request
.
GET
.
getlist
(
'
disease
'
))
if
request
.
GET
.
get
(
'
taxonomy
'
):
compounds
=
compounds
.
filter
(
compoundaction__ppi_id__ppicomplex__complex__protein__organism__id__in
=
request
.
GET
.
getlist
(
'
taxonomy
'
))
try
:
try
:
ppis_limit
=
int
(
request
.
GET
.
get
(
'
ppis_limit
'
))
ppis_limit
=
int
(
request
.
GET
.
get
(
'
ppis_limit
'
))
except
:
except
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment