Skip to content
Snippets Groups Projects
Commit ff4a2706 authored by Tim Kreuzer's avatar Tim Kreuzer
Browse files

use r2drepourl as default name

parent 181af0ab
No related branches found
No related tags found
No related merge requests found
......@@ -139,13 +139,15 @@ class R2DHandler(SpawnHandler):
args_unquote = [urllib.parse.unquote(x) for x in args]
user_options["repo2docker"]["repotype"] = repotype
user_options["repo2docker"]["repourl"] = "/".join(args_unquote)
if len(arguments_dict_lower.get("name", [])) > 0:
user_options["name"] = arguments_dict_lower.get("name")[0].decode("utf-8")
else:
user_options["name"] = "Unnamed"
user_options["repo2docker"]["repourl"] = "/".join(args_unquote)
if repotype == "gh":
user_options["name"] = args_unquote[0]
else:
user_options["name"] = user_options["repo2docker"]["repourl"]
# if "labpath" in self.request.arguments
if len(arguments_dict_lower.get("labpath", [])) > 0:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment