Skip to content

Commit

Permalink
Return from get_username and make sure it is assigned back to self.au…
Browse files Browse the repository at this point in the history
…thor
  • Loading branch information
awgymer committed Dec 9, 2022
1 parent 67e3702 commit 0d7925b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions nf_core/components/components_create.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,3 +173,5 @@ def get_username(author):
f"[violet]GitHub Username:[/]{' (@author)' if author_default is None else ''}",
default=author_default,
)

return author
2 changes: 1 addition & 1 deletion nf_core/modules/create.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ def create(self):
self._get_bioconda_tool()

# Prompt for GitHub username
nf_core.components.components_create.get_username(self.author)
self.author = nf_core.components.components_create.get_username(self.author)

self._get_module_structure_components()

Expand Down
2 changes: 1 addition & 1 deletion nf_core/subworkflows/create.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def create(self):
)

# Prompt for GitHub username
nf_core.components.components_create.get_username(self.author)
self.author = nf_core.components.components_create.get_username(self.author)

# Create subworkflow template with jinja2
nf_core.components.components_create.render_template(self.component_type, vars(self), self.file_paths)
Expand Down

0 comments on commit 0d7925b

Please sign in to comment.