From 0179246ec0b84a5c13df948f07bf6b57c38ba6c4 Mon Sep 17 00:00:00 2001 From: Lars Noack Date: Tue, 23 Apr 2024 11:52:08 +0200 Subject: [PATCH] feat: dynamic objects now also have ids --- music_kraken/objects/parents.py | 2 +- music_kraken/utils/shared.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/music_kraken/objects/parents.py b/music_kraken/objects/parents.py index d80cd23..fd2a80c 100644 --- a/music_kraken/objects/parents.py +++ b/music_kraken/objects/parents.py @@ -89,7 +89,7 @@ class OuterProxy: def __init__(self, _id: int = None, dynamic: bool = False, **kwargs): _automatic_id: bool = False - if _id is None and not dynamic: + if _id is None: """ generates a random integer id the range is defined in the config diff --git a/music_kraken/utils/shared.py b/music_kraken/utils/shared.py index 401b051..a2b06b8 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