We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1df5e4a commit 1c0c8c8Copy full SHA for 1c0c8c8
app/models/remote_sandbox.rb
@@ -15,8 +15,9 @@ def initialize(baseurl)
15
end
16
17
def self.try_to_send_submission_to_free_server(submission, notify_url)
18
- servers = if submission.exercise && ExerciseDir.get(submission.exercise.clone_path).safe_for_experimental_sandbox
19
- if ExerciseDir.exercise_type == "java_maven"
+ dir = ExerciseDir.get(submission.exercise.clone_path)
+ servers = if submission.exercise && dir.safe_for_experimental_sandbox
20
+ if dir.type == "java_maven"
21
all_experimental.shuffle
22
else
23
all_experimental.shuffle + all.shuffle
0 commit comments