mirror of
https://gitlab.science.ru.nl/technicie/MarietjeDjango.git
synced 2025-12-11 11:32:21 +01:00
Merge branch 'dsprenkels/remove_executed' into 'marietje-zuid'
Remove executed field from QueueCommand This change was already added. But accidentally pushed to marietje-zuid. This commit fixes that buggy change. See merge request dsprenkels/MarietjeDjango!29
This commit is contained in:
@ -15,7 +15,7 @@ from .decorators import token_required
|
|||||||
@token_required
|
@token_required
|
||||||
def queue(request):
|
def queue(request):
|
||||||
current_queue = get_object_or_404(Queue, id=request.POST.get('queue'))
|
current_queue = get_object_or_404(Queue, id=request.POST.get('queue'))
|
||||||
commands = current_queue.queuecommand_set
|
commands = current_queue.queuecommand_set.all()
|
||||||
response = JsonResponse({
|
response = JsonResponse({
|
||||||
'current_song': playlist_song_to_dict(current_queue.current_song(), include_hash=True, include_replaygain=True),
|
'current_song': playlist_song_to_dict(current_queue.current_song(), include_hash=True, include_replaygain=True),
|
||||||
'queue': [playlist_song_to_dict(playlist_song, include_hash=True, include_replaygain=True) for playlist_song in current_queue.queue()[:1]],
|
'queue': [playlist_song_to_dict(playlist_song, include_hash=True, include_replaygain=True) for playlist_song in current_queue.queue()[:1]],
|
||||||
|
|||||||
Reference in New Issue
Block a user