mirror of
https://github.com/narrrl/holy-flavor-rater.git
synced 2026-11-03 16:41:27 +01:00
fixed ruff in backend
This commit is contained in:
1 parent
173da217d6
commit
5da8ead2ff
6 files changed
+11
-20
No files matched your search
@@ -71,7 +71,9 @@ class Command(BaseCommand):
|
||||
|
||||
results: dict[int, str] = {}
|
||||
with ThreadPoolExecutor(max_workers=_DOWNLOAD_WORKERS) as ex:
|
||||
futures = {ex.submit(self.download_image_to_path, url, rel): i for i, url, rel in targets}
|
||||
futures = {
|
||||
ex.submit(self.download_image_to_path, url, rel): i for i, url, rel in targets
|
||||
}
|
||||
for fut, i in futures.items():
|
||||
saved = fut.result()
|
||||
if saved:
|
||||
|
||||
Reference in new issue
Block a user