From 6e5db94b800cdd2771cc6647e8c764c7889fb06c Mon Sep 17 00:00:00 2001 From: Bryan Van Deusen Date: Sun, 8 Nov 2026 08:09:39 -0500 Subject: [PATCH] style: sort two import blocks the download cleanup left out of order Co-Authored-By: Claude Opus 5.5 --- backend/app/services/discord_downloader.py | 1 - tests/test_download_service.py | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/backend/app/services/discord_downloader.py b/backend/app/services/discord_downloader.py index cab6db0..8b83028 100644 --- a/backend/app/services/discord_downloader.py +++ b/backend/app/services/discord_downloader.py @@ -44,7 +44,6 @@ from .native_ingest_common import ( make_session, ) - PLATFORM = "discord" _CONTROL = re.compile("[\x00-\x1f\x7f]") # gallery-dl falls back to the response's type for a URL with no extension; diff --git a/tests/test_download_service.py b/tests/test_download_service.py index f9c725a..9440d26 100644 --- a/tests/test_download_service.py +++ b/tests/test_download_service.py @@ -1057,8 +1057,8 @@ async def test_partial_error_type_maps_to_ok_status( """A non-zero gallery-dl exit accompanied by PARTIAL error_type (real files were downloaded before the run was cut short) is treated as status=ok by the orchestrator — next tick continues.""" - from backend.app.services.download_service import DownloadService from backend.app.services.download_result import ErrorType + from backend.app.services.download_service import DownloadService from backend.app.services.importer import Importer _artist, source = seed_artist_and_source