Skip to content

Commit

Permalink
Fix patch
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikDanielsson committed Aug 3, 2022
1 parent f80a5c9 commit b88a423
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 0 additions & 1 deletion nf_core/modules/modules_command.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ def __init__(self, dir, remote_url=None, branch=None, no_pull=False, base_path=N
"""
self.modules_repo = ModulesRepo(remote_url, branch, no_pull, base_path)
self.dir = dir
self.module_names = None
try:
if self.dir:
self.dir, self.repo_type = nf_core.modules.module_utils.get_repo_type(self.dir)
Expand Down
4 changes: 3 additions & 1 deletion nf_core/modules/patch.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ def patch(self, module=None):

if module is None:
module = questionary.autocomplete(
"Tool:", self.module_names[self.modules_repo.fullname], style=nf_core.utils.nfcore_question_style
"Tool:",
self.modules_json.get_all_modules()[self.modules_repo.fullname],
style=nf_core.utils.nfcore_question_style,
).unsafe_ask()
module_fullname = str(Path(self.modules_repo.fullname, module))

Expand Down

0 comments on commit b88a423

Please sign in to comment.