Scrape SunkwiBOT/twitch-drops-api for data
All checks were successful
Deploy to Server / deploy (push) Successful in 29s
All checks were successful
Deploy to Server / deploy (push) Successful in 29s
This commit is contained in:
parent
b06dd6b1ac
commit
3535d7d2dd
28 changed files with 4272 additions and 576 deletions
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue