Fixed a lot of linter warnings
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
2023-12-11 13:08:46 -05:00
parent 34741691ed
commit 516f125ea7
14 changed files with 76 additions and 34 deletions
+6 -1
View File
@@ -1,4 +1,8 @@
# frozen_string_literal: true
# /benchmark routes
class GameData < Sinatra::Base
get '/benchmark' do
benchmarks = Benchmark.reverse(:updated_at).limit(10).all()
@@ -20,6 +24,7 @@ class GameData < Sinatra::Base
description: params[:benchmark_description]
)
redirect "/benchmark"
redirect "/benchmark/#{benchmark.id}"
end
end