Removed unnecessary score formatting from result add

This commit is contained in:
Gregory Ballantine 2023-09-08 07:15:54 -06:00
parent a1a00d9fe5
commit 3c9e6eab6b

View File

@ -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],