-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
25 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
diff --git a/services/views.py b/services/views.py | ||
index 895f92b..4d7bc7f 100644 | ||
--- a/services/views.py | ||
+++ b/services/views.py | ||
@@ -302,7 +302,7 @@ def v1_gene_to_query_track(request): | ||
# make sure the request type is POST and that it contains a focus gene name | ||
if request.method == 'POST' and 'gene' in POST and 'neighbors' in POST: | ||
# get the focus gene of the query track | ||
- focus = get_object_or_404(Feature, name=POST['gene']) | ||
+ focus = get_object_or_404(Feature, uniquename=POST['gene']) | ||
focus_id = focus.pk | ||
focus_order = list(GeneOrder.objects.filter(gene=focus)) | ||
if len(focus_order) == 0: |