Update in db exist checker

This commit is contained in:
2022-09-05 01:34:42 +03:00
parent 911f276bcc
commit 7f003e1216
8 changed files with 94 additions and 84 deletions

View File

@@ -20,7 +20,7 @@ def preload_checks():
async def list_files(fold: str = 'audio'):
if fold != 'audio': fold = f'audio/{fold}'
fold = f'audio/{fold}' if fold != 'audio' else fold
fl = []
for filenames in os.walk(fold):
fl.extend(filenames)