Add editor exclusion defaults and newsletter filtering controls.
This makes it possible to exclude specific editors (e.g. Aranzinger) from edited-article results by default, including dashboard generation and scheduled SMTP runs. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -8,6 +8,7 @@ from typing import Sequence
|
||||
|
||||
from sqlalchemy.orm import Session
|
||||
|
||||
from app.core.config import settings
|
||||
from app.core.email_utils import parse_recipient_list
|
||||
from app.models.system import SendLog
|
||||
from app.services.config_store import get_config
|
||||
@@ -40,6 +41,7 @@ def get_smtp_settings(db: Session) -> dict[str, str]:
|
||||
"gen_days": get_config(db, "smtp.gen_days", "30"),
|
||||
"gen_article_type": get_config(db, "smtp.gen_article_type", "new"),
|
||||
"gen_category": get_config(db, "smtp.gen_category", ""),
|
||||
"gen_excluded_users": get_config(db, "smtp.gen_excluded_users", settings.default_excluded_users),
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user