This commit is contained in:
Mateusz Gruszczyński
2026-06-20 17:41:25 +02:00
parent fc03b7755b
commit e1b5822a59
12 changed files with 38 additions and 31 deletions
+4 -1
View File
@@ -200,7 +200,10 @@ def start_scheduler(socketio=None) -> None:
with connect() as conn:
profiles = conn.execute("SELECT DISTINCT profile_id FROM rss_feeds WHERE enabled=1 AND profile_id IS NOT NULL").fetchall()
for row in profiles:
profile = get_profile(int(row["profile_id"]))
profile_id = int(row["profile_id"])
with connect() as conn:
owner = conn.execute("SELECT user_id FROM rtorrent_profiles WHERE id=?", (profile_id,)).fetchone()
profile = get_profile(profile_id, int(owner["user_id"] if owner and owner.get("user_id") else default_user_id()))
if profile:
result = check(profile, only_due=True)
if socketio and result.get("queued"):