mirror of
https://github.com/neocities/neocities.git
synced 2025-08-05 09:11:28 +02:00
stat referrers, locations, and paths
This commit is contained in:
parent
d9babf5cd6
commit
227b123fc9
10 changed files with 195 additions and 47 deletions
|
@ -161,6 +161,11 @@ class Site < Sequel::Model
|
|||
|
||||
one_to_many :site_files
|
||||
|
||||
one_to_many :stats
|
||||
one_to_many :stat_referrers
|
||||
one_to_many :stat_locations
|
||||
one_to_many :stat_paths
|
||||
|
||||
def account_sites_dataset
|
||||
Site.where(Sequel.|({id: owner.id}, {parent_site_id: owner.id})).order(:parent_site_id.desc, :username)
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue