Scrape SunkwiBOT/twitch-drops-api for data
All checks were successful
Deploy to Server / deploy (push) Successful in 29s

This commit is contained in:
Joakim Hellsén 2026-06-14 17:35:24 +02:00
commit 3535d7d2dd
Signed by: Joakim Hellsén
SSH key fingerprint: SHA256:/9h/CsExpFp+PRhsfA0xznFx2CGfTT5R/kpuFfUgEQk
28 changed files with 4272 additions and 576 deletions

View file

@ -705,6 +705,16 @@ class DropCampaign(auto_prefetch.Model): # noqa: PLR0904
auto_now=True,
)
data_source = models.TextField(
help_text="Identifies the origin tool/script that imported this campaign data.",
max_length=50,
choices=[
("TwitchDropsMiner", "TwitchDropsMiner"),
("SunkwiBOT/twitch-drops-api", "SunkwiBOT/twitch-drops-api"),
],
default="TwitchDropsMiner",
)
is_fully_imported = models.BooleanField(
help_text="True if all images and formats are imported and ready for display.",
default=False,
@ -912,6 +922,9 @@ class DropCampaign(auto_prefetch.Model): # noqa: PLR0904
"twitch_id",
"name",
"distribution_type",
"created_at",
"entitlement_limit",
"is_ios_available",
"image_asset_url",
"image_file",
"image_width",
@ -1806,6 +1819,16 @@ class RewardCampaign(auto_prefetch.Model):
default=False,
)
data_source = models.TextField(
help_text="Identifies the origin tool/script that imported this campaign data.",
max_length=50,
choices=[
("TwitchDropsMiner", "TwitchDropsMiner"),
("SunkwiBOT/twitch-drops-api", "SunkwiBOT/twitch-drops-api"),
],
default="TwitchDropsMiner",
)
game = auto_prefetch.ForeignKey(
help_text="Game associated with this reward campaign (if any).",
related_name="reward_campaigns",