fix: Update background scraper interval validation to enforce a minimum of 5 minutes

This commit is contained in:
g0ldyy
2025-08-26 22:09:05 +02:00
parent ed5243143c
commit f01f1245cb
+1 -1
View File
@@ -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