mirror of
https://github.com/neocities/neocities.git
synced 2025-08-05 17:18:02 +02:00
Only record visit stats for now, need to rethink
This commit is contained in:
parent
c9b4393dce
commit
a9e142dee0
3 changed files with 40 additions and 32 deletions
|
@ -85,6 +85,7 @@ class Stat < Sequel::Model
|
|||
stat.id
|
||||
].first
|
||||
|
||||
=begin
|
||||
site_log[:referrers].each do |referrer, views|
|
||||
stat_referrer = StatReferrer.create_or_get site_log[:id], referrer
|
||||
DB['update stat_referrers set views=views+? where site_id=?', views, site_log[:id]].first
|
||||
|
@ -101,6 +102,7 @@ class Stat < Sequel::Model
|
|||
next if site_path.nil?
|
||||
DB['update stat_paths set views=views+? where id=?', views, site_path.id].first
|
||||
end
|
||||
=end
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue