From 5918147ff9913bf5912d8e3f9117293b034bb8c8 Mon Sep 17 00:00:00 2001 From: Hellow2 Date: Thu, 23 Mar 2023 09:00:39 +0100 Subject: [PATCH] Update collection.py --- src/music_kraken/objects/collection.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/music_kraken/objects/collection.py b/src/music_kraken/objects/collection.py index eb59142..5273d7f 100644 --- a/src/music_kraken/objects/collection.py +++ b/src/music_kraken/objects/collection.py @@ -93,12 +93,13 @@ class Collection: self.unmap_element(existing_object) self.map_element(element) - return True + + return False self._data.append(element) self.map_element(element) - return False + return True def extend(self, element_list: Iterable[DatabaseObject], merge_on_conflict: bool = True): for element in element_list: