From d17c6d8b183b5c7ebdbe6c5eef32c7d3b3fa7c70 Mon Sep 17 00:00:00 2001 From: Kees van Kempen Date: Wed, 6 Jul 2022 16:12:13 +0200 Subject: [PATCH] api: Fix requestor in queue.png --- marietje/api/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/marietje/api/views.py b/marietje/api/views.py index 8b6de10..7d33dc5 100644 --- a/marietje/api/views.py +++ b/marietje/api/views.py @@ -354,7 +354,7 @@ def _request_weight(ps): def queue_png(request): current_song = request.user.queue.current_song() - requestor = 'Marietje' if current_song.user is 'Marietje' else 'privacy™' # Anonymous + requestor = 'privacy™' if current_song.user else 'Marietje' artist, title = current_song.song.artist, current_song.song.title from PIL import Image, ImageDraw, ImageFont