@@ -64,7 +64,7 @@ async def post_submit_hook(self, interaction: discord.Interaction, sub_id: int):
6464 for run in sub_data ["runs" ]:
6565 if (
6666 not run ["secret" ]
67- and run ["mode" ] == SubmissionMode .LEADERBOARD .value
67+ and run ["mode" ] == SubmissionMode .PUBLIC .value
6868 and run ["passed" ]
6969 ):
7070 result_lines .append (generate_run_verdict (self .bot .backend , run , sub_data ))
@@ -134,7 +134,7 @@ async def submit(
134134 reporter = MultiProgressReporterDiscord (interaction )
135135 sub_id , results = await self .bot .backend .submit_full (req , mode , reporter )
136136
137- if mode == SubmissionMode .LEADERBOARD :
137+ if mode == SubmissionMode .PUBLIC :
138138 await self .post_submit_hook (interaction , sub_id )
139139 return sub_id
140140
@@ -157,23 +157,23 @@ async def submit_test(
157157 interaction , leaderboard_name , script , mode = SubmissionMode .TEST , gpu = gpu
158158 )
159159
160- @app_commands .command (name = "benchmark " , description = "Start a benchmarking run" )
160+ @app_commands .command (name = "private " , description = "Start a private benchmarking run" )
161161 @app_commands .describe (
162162 leaderboard_name = "Name of the competition / kernel to optimize" ,
163163 script = "The Python / CUDA script file to run" ,
164164 gpu = "Select GPU. Leave empty for interactive or automatic selection." ,
165165 )
166166 @app_commands .autocomplete (leaderboard_name = leaderboard_name_autocomplete )
167167 @with_error_handling
168- async def submit_bench (
168+ async def submit_private (
169169 self ,
170170 interaction : discord .Interaction ,
171171 script : discord .Attachment ,
172172 leaderboard_name : Optional [str ],
173173 gpu : Optional [str ],
174174 ):
175175 return await self .submit (
176- interaction , leaderboard_name , script , mode = SubmissionMode .BENCHMARK , gpu = gpu
176+ interaction , leaderboard_name , script , mode = SubmissionMode .PRIVATE , gpu = gpu
177177 )
178178
179179 @app_commands .command (name = "profile" , description = "Start a profiling run" )
@@ -196,7 +196,7 @@ async def submit_profile(
196196 )
197197
198198 @app_commands .command (
199- name = "ranked " , description = "Start a ranked run for an official leaderboard submission"
199+ name = "public " , description = "Start a public run for an official leaderboard submission"
200200 )
201201 @app_commands .describe (
202202 leaderboard_name = "Name of the competition / kernel to optimize" ,
@@ -205,15 +205,15 @@ async def submit_profile(
205205 )
206206 @app_commands .autocomplete (leaderboard_name = leaderboard_name_autocomplete )
207207 @with_error_handling
208- async def submit_ranked (
208+ async def submit_public (
209209 self ,
210210 interaction : discord .Interaction ,
211211 script : discord .Attachment ,
212212 leaderboard_name : Optional [str ] = None ,
213213 gpu : Optional [str ] = None ,
214214 ):
215215 return await self .submit (
216- interaction , leaderboard_name , script , mode = SubmissionMode .LEADERBOARD , gpu = gpu
216+ interaction , leaderboard_name , script , mode = SubmissionMode .PUBLIC , gpu = gpu
217217 )
218218
219219
0 commit comments