fix for multiples in overview
This commit is contained in:
+1
-1
@@ -191,7 +191,7 @@ class SkipView(LoginRequiredMixin, View):
|
|||||||
|
|
||||||
class OverView(LoginRequiredMixin, View):
|
class OverView(LoginRequiredMixin, View):
|
||||||
def get(self, request):
|
def get(self, request):
|
||||||
votes = Vote.objects.select_related().distinct()
|
votes = Vote.objects.filter(user=request.user).select_related().distinct()
|
||||||
artists = {}
|
artists = {}
|
||||||
for vote in votes:
|
for vote in votes:
|
||||||
for artist in vote.track.artists.all():
|
for artist in vote.track.artists.all():
|
||||||
|
|||||||
Reference in New Issue
Block a user