From a70a24d93eed35fa01b996073734cc0cde3733ff Mon Sep 17 00:00:00 2001 From: Lars Noack Date: Thu, 16 May 2024 17:14:18 +0200 Subject: [PATCH] feat: minor adjustments --- music_kraken/objects/collection.py | 4 ++-- music_kraken/objects/song.py | 3 +++ music_kraken/utils/shared.py | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/music_kraken/objects/collection.py b/music_kraken/objects/collection.py index 476ab3c..466d84b 100644 --- a/music_kraken/objects/collection.py +++ b/music_kraken/objects/collection.py @@ -166,13 +166,13 @@ class Collection(Generic[T]): for c in self.push_to: r = c._find_object(other) if r is not None: - output("found push to", r, other, c, self, color=BColors.RED, sep="\t") + # output("found push to", r, other, c, self, color=BColors.RED, sep="\t") return c.append(other, **kwargs) for c in self.pull_from: r = c._find_object(other) if r is not None: - output("found pull from", r, other, c, self, color=BColors.RED, sep="\t") + # output("found pull from", r, other, c, self, color=BColors.RED, sep="\t") c.remove(r, existing=r, **kwargs) existing = self._find_object(other) diff --git a/music_kraken/objects/song.py b/music_kraken/objects/song.py index 9e95604..18a29cd 100644 --- a/music_kraken/objects/song.py +++ b/music_kraken/objects/song.py @@ -158,6 +158,9 @@ class Song(Base): self.artist_collection.extend_object_to_attribute = { "album_collection": self.album_collection } + self.feature_artist_collection.extend_object_to_attribute = { + "album_collection": self.album_collection + } def _add_other_db_objects(self, object_type: Type[OuterProxy], object_list: List[OuterProxy]): if object_type is Song: diff --git a/music_kraken/utils/shared.py b/music_kraken/utils/shared.py index 2a5d4a4..8f671f9 100644 --- a/music_kraken/utils/shared.py +++ b/music_kraken/utils/shared.py @@ -15,7 +15,7 @@ __stage__ = os.getenv("STAGE", "prod") DEBUG = (__stage__ == "dev") and True DEBUG_LOGGING = DEBUG and False DEBUG_TRACE = DEBUG and True -DEBUG_OBJECT_TRACE = DEBUG and True +DEBUG_OBJECT_TRACE = DEBUG and False DEBUG_OBJECT_TRACE_CALLSTACK = DEBUG_OBJECT_TRACE and False DEBUG_YOUTUBE_INITIALIZING = DEBUG and False DEBUG_PAGES = DEBUG and False