mirror of
https://github.com/neocities/neocities.git
synced 2025-04-24 17:22:35 +02:00
fix pagination
This commit is contained in:
parent
237ce5f419
commit
4d06265c9c
1 changed files with 2 additions and 1 deletions
3
app.rb
3
app.rb
|
@ -35,8 +35,9 @@ get '/?' do
|
|||
end
|
||||
|
||||
get '/browse' do
|
||||
@current_page = params[:current_page] || 1
|
||||
@current_page = params[:current_page]
|
||||
@current_page = @current_page.to_i
|
||||
@current_page = 1 if @current_page == 0
|
||||
|
||||
site_dataset = Site.filter(is_banned: false).filter(site_changed: true).paginate(@current_page, 300)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue