need to actually return values, whould've thought

main
xenofem 2024-02-07 19:51:46 -05:00
parent 9c6328659f
commit 2d1add4f3e
1 changed files with 2 additions and 2 deletions

View File

@ -333,10 +333,10 @@ def check_extension(path, exts):
return path.suffix.lower() in exts
def is_pdf(path):
check_extension(path, ['.pdf'])
return check_extension(path, ['.pdf'])
def is_image(path):
check_extension(path, IMAGE_FILE_EXTENSIONS)
return check_extension(path, IMAGE_FILE_EXTENSIONS)
def ignoreable(path):
return path.name in IGNOREABLE_FILES or check_extension(path, IGNOREABLE_EXTENSIONS)