mirror of
https://github.com/g0ldyy/comet.git
synced 2026-01-12 01:16:12 +01:00
fix: Update background scraper interval validation to enforce a minimum of 5 minutes
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user