mirror of
https://github.com/neocities/neocities.git
synced 2025-04-24 17:22:35 +02:00
Remove untracked stats from CSV export
This commit is contained in:
parent
440935fb76
commit
38f55a8ec0
1 changed files with 2 additions and 2 deletions
|
@ -108,9 +108,9 @@ get '/site/:username/stats' do
|
|||
attachment "#{current_site.username}-stats.csv"
|
||||
|
||||
return CSV.generate do |csv|
|
||||
csv << ['day', 'hits', 'views', 'comments', 'follows', 'site_updates', 'bandwidth']
|
||||
csv << ['day', 'hits', 'views', 'bandwidth']
|
||||
stats.each do |s|
|
||||
csv << [s[:created_at].to_s, s[:hits], s[:views], s[:comments], s[:follows], s[:site_updates], s[:bandwidth]]
|
||||
csv << [s[:created_at].to_s, s[:hits], s[:views], s[:bandwidth]]
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue