From 5fec07c287bc1b1c4f1c228a61449cbcf5dc88fc Mon Sep 17 00:00:00 2001 From: cottongin Date: Mon, 6 Apr 2026 16:59:27 -0400 Subject: [PATCH] feat: add COVER_SIZE config, issue_type column to Issue model Made-with: Cursor --- config.py | 3 ++- src/models.py | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/config.py b/config.py index c3bf996..659e8d1 100644 --- a/config.py +++ b/config.py @@ -13,5 +13,6 @@ FETCH_INTERVAL_HOURS = 1 IMAGE_MAX_LANDSCAPE = (800, 480) IMAGE_MAX_PORTRAIT = (480, 800) +COVER_SIZE = (480, 800) -POLLINATIONS_URL = "https://image.pollinations.ai/prompt/{prompt}?width=800&height=480&nologo=true" +POLLINATIONS_URL = "https://image.pollinations.ai/prompt/{prompt}?width=480&height=800&nologo=true" diff --git a/src/models.py b/src/models.py index a2a5c0e..95de4f8 100644 --- a/src/models.py +++ b/src/models.py @@ -48,6 +48,7 @@ class Issue(db.Model): db.DateTime, nullable=False, default=lambda: datetime.now(timezone.utc) ) status = db.Column(db.Text, nullable=False, default="draft") + issue_type = db.Column(db.Text, nullable=False, default="weekly") class Setting(db.Model):