Apply automatic rubocop fixes
This commit is contained in:
@ -566,7 +566,7 @@ working_time_accumulated: working_time_accumulated})
|
||||
end
|
||||
|
||||
def redirect_after_submit
|
||||
Rails.logger.debug("Redirecting user with score:s #{@submission.normalized_score}")
|
||||
Rails.logger.debug { "Redirecting user with score:s #{@submission.normalized_score}" }
|
||||
if @submission.normalized_score.to_d == 1.0.to_d
|
||||
# if user is external and has an own rfc, redirect to it and message him to clean up and accept the answer. (we need to check that the user is external,
|
||||
# otherwise an internal user could be shown a false rfc here, since current_user.id is polymorphic, but only makes sense for external users when used with rfcs.)
|
||||
|
@ -197,11 +197,11 @@ module_name: File.basename(filename, File.extname(filename)).underscore}
|
||||
@docker_client.kill_container(result[:container])
|
||||
else
|
||||
socket.send data
|
||||
Rails.logger.debug("Sent the received client data to docker:#{data}")
|
||||
Rails.logger.debug { "Sent the received client data to docker:#{data}" }
|
||||
end
|
||||
rescue JSON::ParserError
|
||||
socket.send data
|
||||
Rails.logger.debug("Rescued parsing error, sent the received client data to docker:#{data}")
|
||||
Rails.logger.debug { "Rescued parsing error, sent the received client data to docker:#{data}" }
|
||||
Sentry.set_extras(data: data)
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user