rewrite api/artist.py to remove artist cache

+ remove processing taylor's version
This commit is contained in:
mungai-njoroge
2023-09-23 18:57:19 +03:00
parent ad88ab4adb
commit f2addf4d0f
8 changed files with 49 additions and 207 deletions
+2 -2
View File
@@ -19,7 +19,7 @@ def create_folder(path: str, count=0) -> Folder:
name=folder.name,
path=win_replace_slash(str(folder)),
is_sym=folder.is_symlink(),
count=count
count=count,
)
@@ -36,7 +36,7 @@ def get_folders(paths: list[str]):
count_dict[path] += 1
folders = [{"path": path, "count": count_dict[path]} for path in paths]
return [create_folder(f['path'], f['count']) for f in folders if f['count'] > 0]
return [create_folder(f["path"], f["count"]) for f in folders if f["count"] > 0]
class GetFilesAndDirs: