From 18bf066f778c2263ba00021b0b252239fd0fae90 Mon Sep 17 00:00:00 2001 From: Hellow2 Date: Tue, 28 Mar 2023 09:21:41 +0200 Subject: [PATCH] laied out proper functions in the parent object --- src/music_kraken/objects/parents.py | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/src/music_kraken/objects/parents.py b/src/music_kraken/objects/parents.py index 855ba71..9aced84 100644 --- a/src/music_kraken/objects/parents.py +++ b/src/music_kraken/objects/parents.py @@ -85,18 +85,20 @@ class DatabaseObject: @property def option_string(self) -> str: return self.__repr__() + + def build_recursive_structures(self) -> bool: + return False def compile(self) -> bool: """ compiles the recursive structures, - - Args: - traceback (set, optional): Defaults to an empty set. - - Returns: - bool: returns true if id has been found in set + and does depending on the object some other stuff. + + no need to override if only the recursive structure should be build. + override self.build_recursive_structures() instead """ - pass + + self.build_recursive_structures() class MainObject(DatabaseObject):