mirror of
https://github.com/neocities/neocities.git
synced 2025-04-24 17:22:35 +02:00
fix obsolete limit! call
This commit is contained in:
parent
dbc47f0586
commit
b1ec65ac14
1 changed files with 2 additions and 2 deletions
|
@ -93,11 +93,11 @@ get '/site/:username/stats' do
|
|||
if params[:days]
|
||||
stats_dataset.limit! params[:days]
|
||||
else
|
||||
stats_dataset.limit! 7
|
||||
stats_dataset = stats_dataset.limit 7
|
||||
end
|
||||
end
|
||||
else
|
||||
stats_dataset.limit! 7
|
||||
stats_dataset = stats_dataset.limit 7
|
||||
end
|
||||
|
||||
@stats[:stat_days] = stats_dataset.all.reverse
|
||||
|
|
Loading…
Add table
Reference in a new issue