From dd4462f42a170d888e66c8e0d1382cf5dae23b5d Mon Sep 17 00:00:00 2001 From: Benex254 Date: Fri, 26 Jul 2024 09:07:49 +0300 Subject: [PATCH] chore: reorganize imports --- fastanime/cli/interfaces/utils.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/fastanime/cli/interfaces/utils.py b/fastanime/cli/interfaces/utils.py index cff508d..c1451d3 100644 --- a/fastanime/cli/interfaces/utils.py +++ b/fastanime/cli/interfaces/utils.py @@ -1,5 +1,9 @@ import os import shutil +import textwrap +from threading import Thread + +import requests from ... import APP_CACHE_DIR from ...libs.anilist.anilist_data_schema import AnilistBaseMediaDataSchema @@ -91,10 +95,6 @@ def write_search_results( search_results: list[AnilistBaseMediaDataSchema], config: Config ): - import textwrap - - import requests - for anime in search_results: if not os.path.exists(SEARCH_RESULTS_CACHE): os.mkdir(SEARCH_RESULTS_CACHE) @@ -142,7 +142,6 @@ def write_search_results( def get_preview(search_results: list[AnilistBaseMediaDataSchema], config: Config): - from threading import Thread background_worker = Thread( target=write_search_results, args=(search_results, config)