See #890: expose number of reports linked to tracks, albums, libraries, accounts and artists via the /stats route

This commit is contained in:
Eliot Berriot 2019-09-13 05:53:40 +02:00
commit 9552b49a46
12 changed files with 73 additions and 2 deletions

View file

@ -124,6 +124,7 @@ def test_actor_stats(factories):
"albums": 0,
"uploads": 0,
"artists": 0,
"reports": 0,
"outbox_activities": 0,
"received_library_follows": 0,
"emitted_library_follows": 0,

View file

@ -189,6 +189,7 @@ def test_artist_detail_stats(factories, superuser_api_client):
"listenings": 0,
"playlists": 0,
"mutations": 0,
"reports": 0,
"track_favorites": 0,
"media_total_size": 0,
"media_downloaded_size": 0,
@ -238,6 +239,7 @@ def test_album_detail_stats(factories, superuser_api_client):
"listenings": 0,
"playlists": 0,
"mutations": 0,
"reports": 0,
"track_favorites": 0,
"media_total_size": 0,
"media_downloaded_size": 0,
@ -284,6 +286,7 @@ def test_track_detail_stats(factories, superuser_api_client):
"listenings": 0,
"playlists": 0,
"mutations": 0,
"reports": 0,
"track_favorites": 0,
"media_total_size": 0,
"media_downloaded_size": 0,
@ -346,6 +349,7 @@ def test_library_detail_stats(factories, superuser_api_client):
"tracks": 0,
"albums": 0,
"artists": 0,
"reports": 0,
"media_total_size": 0,
"media_downloaded_size": 0,
}