mirror of
https://github.com/neocities/neocities.git
synced 2025-04-25 01:32:36 +02:00
fix views browsing
This commit is contained in:
parent
351b2d7178
commit
afa3a312c9
1 changed files with 2 additions and 0 deletions
2
app.rb
2
app.rb
|
@ -307,6 +307,8 @@ get '/browse' do
|
|||
case params[:sort_by]
|
||||
when 'hits'
|
||||
site_dataset.order!(:hits.desc)
|
||||
when 'views'
|
||||
site_dataset.order!(:views.desc)
|
||||
when 'newest'
|
||||
site_dataset.order!(:created_at.desc)
|
||||
when 'oldest'
|
||||
|
|
Loading…
Add table
Reference in a new issue