check if track exists in db before sending file

This commit is contained in:
mungai-njoroge
2023-06-19 21:49:13 +03:00
parent a201303bd9
commit cc6552cb94
17 changed files with 96 additions and 31 deletions
+1 -1
View File
@@ -32,7 +32,7 @@ def get_folders(paths: list[str]):
for track in TrackStore.tracks:
for path in paths:
if track.filepath.startswith(path):
if track.folder.startswith(path):
count_dict[path] += 1
folders = [{"path": path, "count": count_dict[path]} for path in paths]