Skip to content

Commit

Permalink
Fix check_for_updates operation without self redirect
Browse files Browse the repository at this point in the history
  • Loading branch information
guerler committed Oct 4, 2017
1 parent b93eb72 commit e19006d
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions lib/galaxy/webapps/galaxy/controllers/admin_toolshed.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,7 @@ def browse_repositories(self, trans, **kwd):
action='check_for_updates',
**kwd))
if operation == "update tool shed status":
return trans.response.send_redirect(web.url_for(controller='admin_toolshed',
action='update_tool_shed_status_for_installed_repository',
**kwd))
message, status = repository_util.check_for_updates(trans.app, trans.install_model, kwd.get('id'))
if operation == "reset to install":
kwd['reset_repository'] = True
return trans.response.send_redirect(web.url_for(controller='admin_toolshed',
Expand Down Expand Up @@ -1965,15 +1963,6 @@ def update_to_changeset_revision(self, trans, **kwd):
message=message,
status=status))

@web.expose
@web.require_admin
def update_tool_shed_status_for_installed_repository(self, trans, **kwd):
message, status = repository_util.check_for_updates(trans.app, trans.install_model, kwd.get('id', None))
return trans.response.send_redirect(web.url_for(controller='admin_toolshed',
action='browse_repositories',
message=message,
status=status))

@web.expose
@web.require_admin
def view_tool_metadata(self, trans, repository_id, tool_id, **kwd):
Expand Down

0 comments on commit e19006d

Please sign in to comment.