Fixed variable naming bug

This commit is contained in:
Yarne Coppens 2024-08-01 09:51:49 +02:00
parent cf59b7e24b
commit 7985fe0bbc

View file

@ -38,9 +38,9 @@ def get_multiple_boardgames(boardgame_ids: list[int]) -> list[BoardGame]:
boardgame_id_list_commas: str = ','.join(boardgame_id_list_20) 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) url : str = "https://boardgamegeek.com/xmlapi2/thing?id={}&stats=true".format(boardgame_id_list_commas)
print(url) 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')) requested_boardgame = convert_xml_to_boardgame(boardgame_xml_object.find('item'))
boardgame_list_to_return.append(requested_boardgame) boardgame_list_to_return.append(requested_boardgame)