From cec537d70e79df65d72185966776d235d3a99b5e Mon Sep 17 00:00:00 2001 From: Olaf Slomp Date: Sat, 28 Mar 2020 13:11:18 +0100 Subject: [PATCH] more indentation fixes. --- marietje/stats/utils.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/marietje/stats/utils.py b/marietje/stats/utils.py index 513580e..2d0fb2e 100644 --- a/marietje/stats/utils.py +++ b/marietje/stats/utils.py @@ -205,9 +205,9 @@ def user_stats(request): most_played_artists = PlaylistSong.objects.filter( user__id=request, state=2, - song_id__isnull=False).values('song__artist').annotate( - total=Count('song__artist')).order_by('-total', - 'song__artist')[:settings.STATS_TOP_COUNT] + song_id__isnull=False).values('song__artist').annotate( + total=Count('song__artist')).order_by('-total', + 'song__artist')[:settings.STATS_TOP_COUNT] most_played_uploaders = PlaylistSong.objects.filter( user__id=request, state=2).exclude( @@ -237,8 +237,8 @@ def user_stats(request): state=2, song_id__in=Song.objects.filter(user__id=request)).exclude( user__id=None).values('song__artist').annotate(total=Count('song__artist', filter=~Q(user__id=request)), user_total=Count('id', - filter=Q(user__id=request))).order_by( - '-total', 'song__artist') + filter=Q(user__id=request))).order_by( + '-total', 'song__artist') most_played = list(most_played_uploads) total_played_uploads = 0