From 42b13b8413e78be186d1070ea0bfcfebd3b63557 Mon Sep 17 00:00:00 2001 From: Yarne Coppens Date: Thu, 8 Aug 2024 17:00:22 +0200 Subject: [PATCH] Fixed unpacking bug --- src/modules/bgg_connection.py | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/src/modules/bgg_connection.py b/src/modules/bgg_connection.py index 9cd4a52..277e8b2 100644 --- a/src/modules/bgg_connection.py +++ b/src/modules/bgg_connection.py @@ -123,7 +123,7 @@ def convert_collection_xml_to_owned_boardgame(boardgame_extra_info: boardgame_cl } boardgame_dict = { - **boardgame_extra_info, + **boardgame_extra_info.__dict__, **owned_boardgame_dict } @@ -149,17 +149,7 @@ def convert_collection_xml_to_wishlist_boardgame(boardgame_extra_info: boardgame } boardgame_dict = { - "id" : boardgame_extra_info.id, - "name" : boardgame_extra_info.name, - "description" : boardgame_extra_info.description, - "image_url" : boardgame_extra_info.image_url, - "thumbnail_url" : boardgame_extra_info.thumbnail_url, - "year_published" : boardgame_extra_info.year_published, - "min_players" : boardgame_extra_info.min_players, - "max_players" : boardgame_extra_info.max_players, - "min_playing_time" : boardgame_extra_info.min_playing_time, - "max_playing_time" : boardgame_extra_info.max_playing_time, - "min_age" : boardgame_extra_info.min_age, + **boardgame_extra_info.__dict__, **wishlist_boardgame_dict }