Implement Chzzk campaign management features, including models, views, and templates
Some checks failed
Deploy to Server / deploy (push) Failing after 9s

This commit is contained in:
Joakim Hellsén 2026-04-01 04:04:58 +02:00
commit 9ce324fd2d
Signed by: Joakim Hellsén
SSH key fingerprint: SHA256:/9h/CsExpFp+PRhsfA0xznFx2CGfTT5R/kpuFfUgEQk
12 changed files with 594 additions and 164 deletions

View file

@ -26,12 +26,12 @@ class ChzzkCampaign(models.Model):
# Scraping metadata
scraped_at = models.DateTimeField(default=timezone.now)
source_api = models.CharField(max_length=16) # 'v1' or 'v2'
source_api = models.CharField(max_length=16)
scrape_status = models.CharField(max_length=32, default="success")
raw_json = models.JSONField()
raw_json_v1 = models.JSONField(null=True, blank=True)
raw_json_v2 = models.JSONField(null=True, blank=True)
class Meta:
unique_together = ("campaign_no", "source_api")
ordering = ["-start_date"]
def __str__(self) -> str: