Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Metagenomics
metagenedb
Commits
45c841f0
Commit
45c841f0
authored
Jul 17, 2019
by
Kenzo-Hugo Hillion
♻
Browse files
fix flake8
parent
f00c7a44
Pipeline
#13219
passed with stage
in 1 minute and 16 seconds
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
backend/metagenedb/apps/catalog/serializers/__init__.py
View file @
45c841f0
...
...
@@ -3,4 +3,4 @@ from .gene import GeneSerializer
from
.taxonomy
import
TaxonomySerializer
__all__
=
[
'FunctionSerializer'
,
'GeneSerializer'
,
'TaxonomySerializer'
]
\ No newline at end of file
__all__
=
[
'FunctionSerializer'
,
'GeneSerializer'
,
'TaxonomySerializer'
]
backend/metagenedb/apps/catalog/serializers/function.py
View file @
45c841f0
...
...
@@ -5,4 +5,4 @@ from metagenedb.apps.catalog.models import Function
class
FunctionSerializer
(
serializers
.
ModelSerializer
):
class
Meta
:
model
=
Function
fields
=
(
'function_id'
,
'source'
,
'name'
)
\ No newline at end of file
fields
=
(
'function_id'
,
'source'
,
'name'
)
backend/metagenedb/apps/catalog/serializers/gene.py
View file @
45c841f0
...
...
@@ -8,4 +8,4 @@ class GeneSerializer(serializers.ModelSerializer):
class
Meta
:
model
=
Gene
fields
=
(
'gene_id'
,
'gene_length'
,
'functions'
)
\ No newline at end of file
fields
=
(
'gene_id'
,
'gene_length'
,
'functions'
)
backend/metagenedb/apps/catalog/serializers/taxonomy.py
View file @
45c841f0
...
...
@@ -9,7 +9,7 @@ class TaxonomySerializer(serializers.ModelSerializer):
source
=
'parent'
,
required
=
False
)
class
Meta
:
model
=
Taxonomy
fields
=
(
'tax_id'
,
'name'
,
'rank'
,
'parent_tax_id'
)
Write
Preview
Supports
Markdown
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