mirror of
https://github.com/neocities/neocities.git
synced 2025-07-14 06:45:06 +02:00
views/hits score change
This commit is contained in:
parent
c8ff812643
commit
1f7087cb7f
1 changed files with 2 additions and 2 deletions
|
@ -85,10 +85,10 @@ def browse_sites_dataset
|
|||
ds = ds.exclude site_updated_at: nil
|
||||
ds = ds.order(:created_at, :views.desc)
|
||||
when 'hits'
|
||||
ds = ds.where{score > 1}
|
||||
ds = ds.where{score > 5}
|
||||
ds = ds.order(:hits.desc, :site_updated_at.desc)
|
||||
when 'views'
|
||||
ds = ds.where{score > 3}
|
||||
ds = ds.where{score > 5}
|
||||
ds = ds.order(:views.desc, :site_updated_at.desc)
|
||||
when 'featured'
|
||||
ds = ds.exclude featured_at: nil
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue