Added expansions to collection retrieval

This commit is contained in:
Yarne Coppens 2024-08-01 12:39:36 +02:00
parent 188f4d2806
commit c02dc69b64

View file

@ -169,6 +169,11 @@ def get_user_owned_collection() -> list[BoardGame]:
url_no_expansions = 'https://boardgamegeek.com/xmlapi2/collection?username={}&own=1&stats=1&excludesubtype=boardgameexpansion&showprivate=1&version=1'.format(auth_manager.username)
owned_boardgames = get_boardgames_from_collection_url(url_no_expansions)
url_only_expansions = 'https://boardgamegeek.com/xmlapi2/collection?username={}&own=1&stats=1&subtype=boardgameexpansion&showprivate=1&version=1'.format(auth_manager.username)
owned_boardgame_expansions = get_boardgames_from_collection_url(url_only_expansions)
owned_boardgames += owned_boardgame_expansions
return owned_boardgames
def get_user_wishlist_collection() -> list[BoardGame]: