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,9 +20,6 @@ class GameData < Sinatra::Base
end end
post '/result/add' do post '/result/add' do
benchmark = Benchmark.where(:id => params[:result_benchmark]).first() 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_minimum = params[:result_minimum] if params.has_key?(:result_minimum)
result_maximum = params[:result_maximum] if params.has_key?(:result_maximum) result_maximum = params[:result_maximum] if params.has_key?(:result_maximum)