Fixed unpacking bug

This commit is contained in:
Yarne Coppens 2024-08-08 17:00:22 +02:00
parent f47c7cfd16
commit 42b13b8413

View file

@ -123,7 +123,7 @@ def convert_collection_xml_to_owned_boardgame(boardgame_extra_info: boardgame_cl
} }
boardgame_dict = { boardgame_dict = {
**boardgame_extra_info, **boardgame_extra_info.__dict__,
**owned_boardgame_dict **owned_boardgame_dict
} }
@ -149,17 +149,7 @@ def convert_collection_xml_to_wishlist_boardgame(boardgame_extra_info: boardgame
} }
boardgame_dict = { boardgame_dict = {
"id" : boardgame_extra_info.id, **boardgame_extra_info.__dict__,
"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,
**wishlist_boardgame_dict **wishlist_boardgame_dict
} }