From 7985fe0bbc38a216b60d82de8d0b91cd1943dd21 Mon Sep 17 00:00:00 2001 From: Yarne Coppens Date: Thu, 1 Aug 2024 09:51:49 +0200 Subject: [PATCH] Fixed variable naming bug --- bgg_connection.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)