feat: swaped the artist syncing

This commit is contained in:
Hazel 2024-04-18 15:43:01 +02:00
parent 662f207529
commit 3cd9daf512

View File

@ -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