mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Remove unused function
This commit is contained in:
@@ -17,7 +17,6 @@ from markupsafe import escape
|
||||
from sqlalchemy import (
|
||||
and_,
|
||||
false,
|
||||
or_,
|
||||
)
|
||||
from sqlalchemy.orm import joinedload
|
||||
|
||||
@@ -242,30 +241,6 @@ def get_absolute_path_to_file_in_repository(repo_files_dir, file_name):
|
||||
return file_path
|
||||
|
||||
|
||||
def get_ids_of_tool_shed_repositories_being_installed(app, as_string=False):
|
||||
installing_repository_ids = []
|
||||
new_status = app.install_model.ToolShedRepository.installation_status.NEW
|
||||
cloning_status = app.install_model.ToolShedRepository.installation_status.CLONING
|
||||
setting_tool_versions_status = app.install_model.ToolShedRepository.installation_status.SETTING_TOOL_VERSIONS
|
||||
installing_dependencies_status = (
|
||||
app.install_model.ToolShedRepository.installation_status.INSTALLING_TOOL_DEPENDENCIES
|
||||
)
|
||||
loading_datatypes_status = app.install_model.ToolShedRepository.installation_status.LOADING_PROPRIETARY_DATATYPES
|
||||
for tool_shed_repository in app.install_model.context.query(app.install_model.ToolShedRepository).filter(
|
||||
or_(
|
||||
app.install_model.ToolShedRepository.status == new_status,
|
||||
app.install_model.ToolShedRepository.status == cloning_status,
|
||||
app.install_model.ToolShedRepository.status == setting_tool_versions_status,
|
||||
app.install_model.ToolShedRepository.status == installing_dependencies_status,
|
||||
app.install_model.ToolShedRepository.status == loading_datatypes_status,
|
||||
)
|
||||
):
|
||||
installing_repository_ids.append(app.security.encode_id(tool_shed_repository.id))
|
||||
if as_string:
|
||||
return ",".join(installing_repository_ids)
|
||||
return installing_repository_ids
|
||||
|
||||
|
||||
def get_installed_repository(
|
||||
app,
|
||||
tool_shed=None,
|
||||
@@ -773,7 +748,6 @@ __all__ = (
|
||||
"extract_components_from_tuple",
|
||||
"generate_tool_shed_repository_install_dir",
|
||||
"get_absolute_path_to_file_in_repository",
|
||||
"get_ids_of_tool_shed_repositories_being_installed",
|
||||
"get_installed_repository",
|
||||
"get_installed_tool_shed_repository",
|
||||
"get_prior_import_or_install_required_dict",
|
||||
|
||||
@@ -28,7 +28,6 @@ from galaxy.tool_shed.util.repository_util import (
|
||||
extract_components_from_tuple,
|
||||
generate_tool_shed_repository_install_dir,
|
||||
get_absolute_path_to_file_in_repository,
|
||||
get_ids_of_tool_shed_repositories_being_installed,
|
||||
get_installed_repository,
|
||||
get_installed_tool_shed_repository,
|
||||
get_prior_import_or_install_required_dict,
|
||||
@@ -601,7 +600,6 @@ __all__ = (
|
||||
"generate_sharable_link_for_repository_in_tool_shed",
|
||||
"generate_tool_shed_repository_install_dir",
|
||||
"get_absolute_path_to_file_in_repository",
|
||||
"get_ids_of_tool_shed_repositories_being_installed",
|
||||
"get_installed_repository",
|
||||
"get_installed_tool_shed_repository",
|
||||
"get_prior_import_or_install_required_dict",
|
||||
|
||||
Reference in New Issue
Block a user