fixes
This commit is contained in:
@@ -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"):
|
||||
|
||||
Reference in New Issue
Block a user