Merge branch 'master' of github.com:neocities/neocities

This commit is contained in:
Kyle Drake 2017-07-23 11:53:06 -07:00
commit fcb2da9166
2 changed files with 2 additions and 3 deletions

View file

@ -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

View file

@ -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