Compare commits

...

2 Commits
59.0 ... 59.1

Author SHA1 Message Date
28a53d70eb [release] Bump to version 59.1
Some checks failed
ci / test (push) Failing after 1m50s
ci / build-and-deploy (push) Has been skipped
- Fix bug when expansions have no image
2026-07-04 10:10:22 -04:00
98d4e8bacb [boardgames] Fix bug when expansion has no image 2026-07-04 10:09:55 -04:00
3 changed files with 10 additions and 3 deletions

View File

@ -619,6 +619,12 @@ The Edit log form should have from top to bottom:
- Expansion ids (which should a multi-select widget of expansions for this game) - Expansion ids (which should a multi-select widget of expansions for this game)
- Location (which should be a drop down of BoardGameLocations for this user) - Location (which should be a drop down of BoardGameLocations for this user)
* Version 59.1 [1/1]
** DONE Fix bug when expansions have no image :boardgames:bug:
:PROPERTIES:
:ID: 9fee96c9-c6a0-32d9-b6f8-212c60fc3540
:END:
* Version 59.0 [3/3] * Version 59.0 [3/3]
** DONE [#A] Add BoardGameVariant model :boardgames: ** DONE [#A] Add BoardGameVariant model :boardgames:
:PROPERTIES: :PROPERTIES:

View File

@ -1,6 +1,6 @@
[tool.poetry] [tool.poetry]
name = "vrobbler" name = "vrobbler"
version = "59.0" version = "59.1"
description = "" description = ""
authors = ["Colin Powell <colin@unbl.ink>"] authors = ["Colin Powell <colin@unbl.ink>"]

View File

@ -416,11 +416,12 @@ class BoardGame(ScrobblableMixin):
categories = bgg_data.pop("categories", []) categories = bgg_data.pop("categories", [])
publishers = bgg_data.pop("publishers", []) publishers = bgg_data.pop("publishers", [])
publisher = bgg_data.pop("publisher", []) publisher = bgg_data.pop("publisher", [])
cover_url = bgg_data.pop("cover_url") cover_url = bgg_data.pop("cover_url") or ""
game = cls.objects.create(**bgg_data) game = cls.objects.create(**bgg_data)
game.save_image_from_url(cover_url) if cover_url:
game.save_image_from_url(cover_url)
game.cooperative = data.get("cooperative", False) game.cooperative = data.get("cooperative", False)
game.highest_wins = data.get("highestWins", True) game.highest_wins = data.get("highestWins", True)
game.no_points = data.get("noPoints", False) game.no_points = data.get("noPoints", False)