Removed unnecessary score formatting from result add
This commit is contained in:
parent
a1a00d9fe5
commit
3c9e6eab6b
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user