init
This commit is contained in:
@@ -98,7 +98,7 @@ class UserViewSet(mixins.RetrieveModelMixin,
|
||||
stats = User.objects.filter(id=request.user.id).aggregate(
|
||||
total_size=Sum("torrents__size"),
|
||||
total_torrent=Count("torrents"),
|
||||
total_shared_torrent=Count("torrents_shares")
|
||||
total_shared_torrent=Count("torrents_shares", distinct=True),
|
||||
)
|
||||
|
||||
disk_usage = shutil.disk_usage("/")
|
||||
|
||||
Reference in New Issue
Block a user