From f01f1245cb46801bc9965ee3a12d101ee2a8b728 Mon Sep 17 00:00:00 2001 From: g0ldyy <153996346+g0ldyy@users.noreply.github.com> Date: Tue, 26 Aug 2025 22:09:05 +0200 Subject: [PATCH] fix: Update background scraper interval validation to enforce a minimum of 5 minutes --- comet/utils/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/comet/utils/models.py b/comet/utils/models.py index 36819f3..49d0e70 100644 --- a/comet/utils/models.py +++ b/comet/utils/models.py @@ -107,7 +107,7 @@ class AppSettings(BaseSettings): @field_validator("BACKGROUND_SCRAPER_INTERVAL") def validate_background_scraper_interval(cls, v): - if v <= 0: + if v < 300: return 300 # Minimum 5 minutes return v