Add box art and campaign image metadata fields; update feeds and backfill command
All checks were successful
Deploy to Server / deploy (push) Successful in 10s

This commit is contained in:
Joakim Hellsén 2026-03-09 19:53:10 +01:00
commit 5d95038faf
Signed by: Joakim Hellsén
SSH key fingerprint: SHA256:/9h/CsExpFp+PRhsfA0xznFx2CGfTT5R/kpuFfUgEQk
6 changed files with 264 additions and 25 deletions

View file

@ -115,6 +115,19 @@ class Game(auto_prefetch.Model):
editable=False,
help_text="Height of cached box art image in pixels.",
)
box_art_size_bytes = models.PositiveIntegerField(
null=True,
blank=True,
editable=False,
help_text="File size of the cached box art image in bytes.",
)
box_art_mime_type = models.CharField(
max_length=50,
blank=True,
default="",
editable=False,
help_text="MIME type of the cached box art image (e.g., 'image/png').",
)
owners = models.ManyToManyField(
Organization,
@ -357,6 +370,19 @@ class DropCampaign(auto_prefetch.Model):
editable=False,
help_text="Height of cached image in pixels.",
)
image_size_bytes = models.PositiveIntegerField(
null=True,
blank=True,
editable=False,
help_text="File size of the cached campaign image in bytes.",
)
image_mime_type = models.CharField(
max_length=50,
blank=True,
default="",
editable=False,
help_text="MIME type of the cached campaign image (e.g., 'image/png').",
)
start_at = models.DateTimeField(
null=True,
blank=True,