mirror of
https://github.com/neocities/neocities.git
synced 2025-04-24 17:22:35 +02:00
reverse ordering of lookup for browse as an experiment
This commit is contained in:
parent
ebec39dcea
commit
8153b29537
1 changed files with 1 additions and 1 deletions
2
app.rb
2
app.rb
|
@ -20,7 +20,7 @@ end
|
|||
get '/browse' do
|
||||
@current_page = params[:current_page] || 1
|
||||
@current_page = @current_page.to_i
|
||||
site_dataset = Site.order(:hits.desc, :updated_at.desc).filter(is_banned: false).filter(~{updated_at: nil}).paginate(@current_page, 201)
|
||||
site_dataset = Site.order(:updated_at.desc, :hits.desc).filter(is_banned: false).filter(~{updated_at: nil}).paginate(@current_page, 201)
|
||||
@page_count = site_dataset.page_count || 1
|
||||
@sites = site_dataset.all
|
||||
slim :browse
|
||||
|
|
Loading…
Add table
Reference in a new issue