Skip to content

Commit

Permalink
fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
mr-c committed Jan 24, 2020
1 parent d9056d7 commit 21b4c22
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions lib/galaxy/webapps/galaxy/api/biotools.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import functools
import logging
import os
import string
import logging
log = logging.getLogger( __name__ )
log = logging.getLogger(__name__)


def json_formatter(func):
Expand Down
4 changes: 2 additions & 2 deletions lib/galaxy/webapps/galaxy/api/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def show(self, trans, id, **kwd):

@expose_api_anonymous_and_sessionless
@json_formatter
def biotools( self, trans, id, **kwd ):
def biotools(self, trans, id, **kwd):
"""
GET /api/tools/{tool_id}/biotools
Return json that can be consumed by the ELIXIR registry.
Expand All @@ -123,7 +123,7 @@ def biotools( self, trans, id, **kwd ):
def to_dict(x):
return x.to_dict()

tool = self._get_tool( id, user=trans.user )
tool = self._get_tool(id, user=trans.user)
input_param = list()
for name, param in tool.inputs.items():
input_param.append(param.to_dict(trans))
Expand Down
2 changes: 1 addition & 1 deletion lib/galaxy/webapps/galaxy/buildapp.py
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ def populate_api_routes(webapp, app):
webapp.mapper.connect('/api/tools/{id:.+?}/test_data_download', action='test_data_download', controller="tools")
webapp.mapper.connect('/api/tools/{id:.+?}/test_data', action='test_data', controller="tools")
webapp.mapper.connect('/api/tools/{id:.+?}/diagnostics', action='diagnostics', controller="tools")
webapp.mapper.connect('/api/tools/{id:.+?}/biotools', action='biotools', controller="tools" )
webapp.mapper.connect('/api/tools/{id:.+?}/biotools', action='biotools', controller="tools")
webapp.mapper.connect('/api/tools/{id:.+?}/citations', action='citations', controller="tools")
webapp.mapper.connect('/api/tools/{id:.+?}/xrefs', action='xrefs', controller="tools")
webapp.mapper.connect('/api/tools/{id:.+?}/download', action='download', controller="tools")
Expand Down

0 comments on commit 21b4c22

Please sign in to comment.