File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -96,7 +96,7 @@ def new_contest():
96
96
fatal ("--problem does not work for new_contest." )
97
97
98
98
# Ask for all required infos.
99
- title = _ask_variable_string ("name" , config .args .contestname ). replace ( "_" , "-" )
99
+ title = _ask_variable_string ("name" , config .args .contestname )
100
100
subtitle = _ask_variable_string ("subtitle" , "" , True ).replace ("_" , "-" )
101
101
dirname = _ask_variable_string ("dirname" , _alpha_num (title ))
102
102
author = _ask_variable_string ("author" , f"The { title } Jury" ).replace ("_" , "-" )
@@ -108,6 +108,7 @@ def new_contest():
108
108
"rights owner (if left empty, defaults to problem author)" , "" , allow_empty = True
109
109
)
110
110
rights_owner = f"rights_owner: { rights_owner } \n " if rights_owner else ""
111
+ title = title .replace ("_" , "-" )
111
112
112
113
skeldir = config .TOOLS_ROOT / "skel/contest"
113
114
log (f"Copying { skeldir } to { dirname } ." )
You can’t perform that action at this time.
0 commit comments