feat: successfully added artwork

This commit is contained in:
2024-04-10 18:53:36 +02:00
parent 0c367884e3
commit 15ee1d3317
3 changed files with 19 additions and 4 deletions

View File

@@ -43,7 +43,7 @@ class Artwork:
@property
def best_variant(self) -> ArtworkVariant:
if len(self._variant_mapping) == 0:
if len(self._variant_mapping.keys()) <= 0:
return None
return min(self._variant_mapping.values(), key=lambda x: x["deviation"])