From c62640ba995f6000aa8827d9126a491a8b06b009 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20Gruszczy=C5=84ski?= Date: Thu, 21 May 2026 22:12:33 +0200 Subject: [PATCH] fix ion import --- pytorrent/routes/_shared.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pytorrent/routes/_shared.py b/pytorrent/routes/_shared.py index 6321263..37f69bd 100644 --- a/pytorrent/routes/_shared.py +++ b/pytorrent/routes/_shared.py @@ -18,7 +18,8 @@ import queue import threading from pathlib import Path from urllib.parse import quote -from flask import Blueprint, jsonify, request, abort, send_file, redirect, Response, stream_with_context +from flask import Blueprint, jsonify, request, abort, send_file, redirect, Response, stream_with_context, url_for +# Note: url_for is exported through this shared module for API routes that build temporary in-app links. from ..config import DB_PATH, JOBS_RETENTION_DAYS, SMART_QUEUE_HISTORY_RETENTION_DAYS, LOG_RETENTION_DAYS, WORKERS, PYTORRENT_TMP_DIR from ..db import connect, utcnow from ..services.auth import current_user_id as default_user_id, current_user, list_users, save_user, delete_user, login_user, logout_user, enabled as auth_enabled, require_profile_write