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
# /hardware routes
class GameData < Sinatra::Base
get '/hardware' do
hardware = Hardware.reverse(:updated_at).limit(10).all()
@@ -19,6 +23,7 @@ class GameData < Sinatra::Base
type: params[:hardware_type]
)
redirect "/hardware"
redirect "/hardware#{hardware.id}"
end
end