-
Notifications
You must be signed in to change notification settings - Fork 20
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
5 changed files
with
37 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,4 @@ biothings[web_extra]==0.8.1 | |
elasticsearch==6.3.1 | ||
elasticsearch-dsl==6.3.1 | ||
#Optional | ||
raven | ||
raven |
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 |
---|---|---|
@@ -1 +1,2 @@ | ||
from .build import MygeneQueryBuilder | ||
from .build import MygeneQueryBuilder | ||
from .transform import MygeneTransform |
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,14 @@ | ||
from biothings.web.pipeline import ESResultTransform | ||
|
||
class MygeneTransform(ESResultTransform): | ||
|
||
@staticmethod | ||
def option_sorted(path, obj): | ||
""" | ||
Sort a container in-place. | ||
""" | ||
if path == 'homologene.genes': | ||
return # do not sort this field | ||
|
||
# delegate to super class for normal cases | ||
ESResultTransform.option_sorted(path, obj) |