Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docker/compute_worker/compute_worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -734,7 +734,7 @@ def push_scores(self):
elif os.path.exists(os.path.join(self.output_dir, "scores.txt")):
scores_file = os.path.join(self.output_dir, "scores.txt")
with open(scores_file) as f:
scores = yaml.load(f)
scores = yaml.load(f, yaml.Loader)
else:
raise SubmissionException("Could not find scores file, did the scoring program output it?")

Expand Down
2 changes: 1 addition & 1 deletion src/apps/api/serializers/leaderboards.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ def get_columns(self, instance):
if len(columns) == 0:
raise serializers.ValidationError("No columns exist on the leaderboard")
else:
return ColumnSerializer(columns, many=len(columns) > 1).data
return ColumnSerializer(columns, many=len(columns) >= 1).data

class Meta:
model = Phase
Expand Down