Added expansions to collection retrieval
This commit is contained in:
parent
188f4d2806
commit
c02dc69b64
1 changed files with 5 additions and 0 deletions
|
|
@ -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)
|
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)
|
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
|
return owned_boardgames
|
||||||
|
|
||||||
def get_user_wishlist_collection() -> list[BoardGame]:
|
def get_user_wishlist_collection() -> list[BoardGame]:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue