Try to fix autoqueue adoption #2

This commit is contained in:
Daan Sprenkels
2018-11-23 15:28:54 +01:00
parent daf842ec62
commit 2a2316fb40

View File

@ -134,9 +134,7 @@ class Queue(models.Model):
playlist_song.save() playlist_song.save()
# If the song was auto-queue'd, then remove it from the auto-queue # 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) autolist_songs = PlaylistSong.objects.filter(playlist=self.random_playlist, state=0, song=song).delete()
for song in autolist_songs:
song.delete()
return None return None