Skip to content

Commit 0870651

Browse files
authored
Revert "Remove code upload challenges (Cloud-CV#4458)" (Cloud-CV#4773)
This reverts commit c194f5e.
1 parent 7fd0db0 commit 0870651

1 file changed

Lines changed: 0 additions & 10 deletions

File tree

apps/challenges/challenge_config_utils.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,6 @@ def get_value_from_field(data, base_location, field_name):
311311
"prize_rank_wrong": "ERROR: Invalid rank value {}. Rank should be an integer.",
312312
"challenge_metadata_schema_errors": "ERROR: Unable to serialize the challenge because of the following errors: {}.",
313313
"evaluation_script_not_zip": "ERROR: Please pass in a zip file as evaluation script. If using the `evaluation_script` directory (recommended), it should be `evaluation_script.zip`.",
314-
"docker_based_challenge": "ERROR: New Docker based challenges are not supported starting March 15, 2025.",
315314
}
316315

317316

@@ -1065,12 +1064,6 @@ def check_prizes(self):
10651064
].format(prize["amount"])
10661065
self.error_messages.append(message)
10671066

1068-
def check_docker_based_challenge(self):
1069-
if "is_docker_based" in self.yaml_file_data:
1070-
if self.yaml_file_data["is_docker_based"]:
1071-
message = self.error_messages_dict["docker_based_challenge"]
1072-
self.error_messages.append(message)
1073-
10741067

10751068
def validate_challenge_config_util(
10761069
request,
@@ -1192,9 +1185,6 @@ def validate_challenge_config_util(
11921185
# Check for Prize
11931186
val_config_util.check_prizes()
11941187

1195-
# Check for Docker based challenge
1196-
val_config_util.check_docker_based_challenge()
1197-
11981188
return (
11991189
val_config_util.error_messages,
12001190
val_config_util.yaml_file_data,

0 commit comments

Comments
 (0)