mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-04 11:19:15 +02:00
Include only local content in nodeinfo stats, added downloads count
This commit is contained in:
parent
8d59d8f27a
commit
f146c0ae91
5 changed files with 16 additions and 6 deletions
|
@ -87,6 +87,7 @@ def get():
|
|||
data["metadata"]["usage"] = {
|
||||
"favorites": {"tracks": {"total": statistics["track_favorites"]}},
|
||||
"listenings": {"total": statistics["listenings"]},
|
||||
"downloads": {"total": statistics["downloads"]},
|
||||
}
|
||||
if not auth_required:
|
||||
data["metadata"]["knownNodesListUrl"] = federation_utils.full_url(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue