Fixed the chart generation page with the new ChartJS version and DB schema
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed

This commit is contained in:
2025-07-28 10:48:49 -04:00
parent 5cc3b8f824
commit 42a0b95015
7 changed files with 186 additions and 64 deletions

View File

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