mirror of
https://gitlab.science.ru.nl/technicie/MarietjeDjango.git
synced 2025-12-09 17:02:21 +01:00
api: Fix requestor in queue.png
This commit is contained in:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user