Removed unnecessary score formatting from result add
This commit is contained in:
parent
a1a00d9fe5
commit
3c9e6eab6b
@ -20,13 +20,10 @@ class GameData < Sinatra::Base
|
||||
end
|
||||
post '/result/add' do
|
||||
benchmark = Benchmark.where(:id => params[:result_benchmark]).first()
|
||||
if benchmark.scoring == 'fps'
|
||||
formatted_score = params[:result_average] + ':' + params[:result_minimum] + ':' + params[:result_maximum]
|
||||
end
|
||||
|
||||
result_minimum = params[:result_minimum] if params.has_key?(:result_minimum)
|
||||
result_maximum = params[:result_maximum] if params.has_key?(:result_maximum)
|
||||
|
||||
|
||||
result = Result.create(
|
||||
hardware_id: params[:result_hardware],
|
||||
benchmark_id: params[:result_benchmark],
|
||||
|
Loading…
Reference in New Issue
Block a user