From 3cd9daf512a01c244627b8005fde2f18425f3ed0 Mon Sep 17 00:00:00 2001 From: Lars Noack Date: Thu, 18 Apr 2024 15:43:01 +0200 Subject: [PATCH] feat: swaped the artist syncing --- music_kraken/objects/song.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/music_kraken/objects/song.py b/music_kraken/objects/song.py index 7608f7e..b81d57f 100644 --- a/music_kraken/objects/song.py +++ b/music_kraken/objects/song.py @@ -86,9 +86,11 @@ class Song(Base): TITEL = "title" def __init_collections__(self) -> None: + """ self.album_collection.contain_given_in_attribute = { "artist_collection": self.main_artist_collection, } + """ self.album_collection.append_object_to_attribute = { "song_collection": self, } @@ -245,6 +247,9 @@ class Album(Base): self.song_collection.append_object_to_attribute = { "album_collection": self } + self.song_collection.contain_given_in_attribute = { + "main_artist_collection": self.artist_collection + } self.artist_collection.append_object_to_attribute = { "main_album_collection": self