mirror of
https://github.com/neocities/neocities.git
synced 2025-04-25 01:32:36 +02:00
Merge branch 'master' of github.com:neocities/neocities
This commit is contained in:
commit
fcb2da9166
2 changed files with 2 additions and 3 deletions
|
@ -93,11 +93,11 @@ get '/site/:username/stats' do
|
||||||
if params[:days]
|
if params[:days]
|
||||||
stats_dataset.limit! params[:days]
|
stats_dataset.limit! params[:days]
|
||||||
else
|
else
|
||||||
stats_dataset.limit! 7
|
stats_dataset = stats_dataset.limit 7
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
stats_dataset.limit! 7
|
stats_dataset = stats_dataset.limit 7
|
||||||
end
|
end
|
||||||
|
|
||||||
@stats[:stat_days] = stats_dataset.all.reverse
|
@stats[:stat_days] = stats_dataset.all.reverse
|
||||||
|
|
|
@ -136,7 +136,6 @@ module Ago
|
||||||
|
|
||||||
# If the argument passed into ago() is a symbol, focus the ago statement
|
# If the argument passed into ago() is a symbol, focus the ago statement
|
||||||
# down to the level specified in the symbol
|
# down to the level specified in the symbol
|
||||||
puts focus.class.inspect
|
|
||||||
if focus.class == Symbol
|
if focus.class == Symbol
|
||||||
break if u == focus || u == :second
|
break if u == focus || u == :second
|
||||||
elsif focus.class == Integer
|
elsif focus.class == Integer
|
||||||
|
|
Loading…
Add table
Reference in a new issue