Skip to content

Commit

Permalink
chore: reorganize imports
Browse files Browse the repository at this point in the history
  • Loading branch information
Benex254 committed Jul 26, 2024
1 parent 0f9e08b commit dd4462f
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions fastanime/cli/interfaces/utils.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit dd4462f

Please sign in to comment.