need to actually return values, whould've thought

This commit is contained in:
xenofem 2024-02-07 19:51:46 -05:00
parent 9c6328659f
commit 2d1add4f3e

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)