Fixed the chart generation page with the new ChartJS version and DB schema
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
This commit is contained in:
@ -11,7 +11,7 @@ class GameData < Sinatra::Base
|
||||
json benchmark.values()
|
||||
end
|
||||
|
||||
get '/api/v1/results' do
|
||||
get '/api/v1/result/list' do
|
||||
test_id = params[:test_id]
|
||||
benchmark_id = params[:benchmark_id]
|
||||
|
||||
@ -20,4 +20,12 @@ class GameData < Sinatra::Base
|
||||
json results.map(&:values)
|
||||
end
|
||||
|
||||
get '/api/v1/test/details' do
|
||||
test_id = params[:test_id]
|
||||
|
||||
tst = Test.where(id: test_id).first()
|
||||
|
||||
json tst.values()
|
||||
end
|
||||
|
||||
end
|
||||
|
Reference in New Issue
Block a user