From 56101d4a31a1e2041e917da332f07b73daea82e8 Mon Sep 17 00:00:00 2001 From: Lars Noack Date: Wed, 17 Apr 2024 17:56:16 +0200 Subject: [PATCH] fix: clean mapping --- music_kraken/objects/collection.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/music_kraken/objects/collection.py b/music_kraken/objects/collection.py index 1fba27d..e0789d9 100644 --- a/music_kraken/objects/collection.py +++ b/music_kraken/objects/collection.py @@ -46,7 +46,7 @@ class Collection(Generic[T]): def _map_element(self, __object: T, from_map: bool = False): self._contains_ids.add(__object.id) - for name, value in __object.indexing_values: + for name, value in (*__object.indexing_values, ('id', __object.id)): if value is None or value == __object._inner._default_values.get(name): continue