diff --git a/bgg_connection.py b/bgg_connection.py index 94f3fba..4ed9364 100644 --- a/bgg_connection.py +++ b/bgg_connection.py @@ -38,9 +38,9 @@ def get_multiple_boardgames(boardgame_ids: list[int]) -> list[BoardGame]: boardgame_id_list_commas: str = ','.join(boardgame_id_list_20) url : str = "https://boardgamegeek.com/xmlapi2/thing?id={}&stats=true".format(boardgame_id_list_commas) print(url) - boardgame_xml_object : ET.Element = url_to_xml_object(url) + boardgames_xml_object : ET.Element = url_to_xml_object(url) - for boardgame in boardgame_xml_object: + for boardgame_xml_object in boardgames_xml_object: requested_boardgame = convert_xml_to_boardgame(boardgame_xml_object.find('item')) boardgame_list_to_return.append(requested_boardgame)