mirror of
https://gitlab.science.ru.nl/technicie/MarietjeDjango.git
synced 2025-12-09 22:02:20 +01:00
Try to fix autoqueue adoption #2
This commit is contained in:
@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user