[boardgames] Fix looking up from bookmarklet
All checks were successful
build & deploy / test (push) Successful in 1m47s
build & deploy / deploy (push) Successful in 22s

This commit is contained in:
2026-03-25 11:18:16 -04:00
parent 45d524ca61
commit b949a84763

View File

@ -347,7 +347,10 @@ class BoardGame(ScrobblableMixin):
elif data.get("name"):
bgg_data = lookup_boardgame_from_bgg(title=data.get("name"))
else:
bgg_data = lookup_boardgame_from_bgg(title=lookup_id)
if int(lookup_id):
bgg_data = lookup_boardgame_from_bgg(lookup_id=lookup_id)
else:
bgg_data = lookup_boardgame_from_bgg(title=lookup_id)
mechanics = bgg_data.pop("mechanics", [])
designers = bgg_data.pop("designers", [])