exclude stats from the current day

This commit is contained in:
Kyle Drake 2015-06-08 21:07:05 -07:00
parent bf61a5384e
commit d3eda71447

View file

@ -82,7 +82,7 @@ get '/site/:username/stats' do
location_hash location_hash
end end
stats_dataset = @site.stats_dataset.order(:created_at.desc) stats_dataset = @site.stats_dataset.order(:created_at.desc).exclude(created_at: Date.today)
if @site.supporter? if @site.supporter?
unless params[:days].to_s == 'sincethebigbang' unless params[:days].to_s == 'sincethebigbang'