From 2a2316fb40c5e0acfb4ab02c5220b4b55e15cd64 Mon Sep 17 00:00:00 2001 From: Daan Sprenkels Date: Fri, 23 Nov 2018 15:28:54 +0100 Subject: [PATCH] Try to fix autoqueue adoption #2 --- marietje/queues/models.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/marietje/queues/models.py b/marietje/queues/models.py index 924657d..e624734 100644 --- a/marietje/queues/models.py +++ b/marietje/queues/models.py @@ -134,9 +134,7 @@ class Queue(models.Model): playlist_song.save() # If the song was auto-queue'd, then remove it from the auto-queue - autolist_songs = PLaylistSong.objects.filter(playlist=self.random_playlist, state=0, song=song) - for song in autolist_songs: - song.delete() + autolist_songs = PlaylistSong.objects.filter(playlist=self.random_playlist, state=0, song=song).delete() return None