From 2d1add4f3e51edb68ce52bcb5776baf011178c20 Mon Sep 17 00:00:00 2001 From: xenofem Date: Wed, 7 Feb 2024 19:51:46 -0500 Subject: [PATCH] need to actually return values, whould've thought --- dlibrary/dlibrary.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlibrary/dlibrary.py b/dlibrary/dlibrary.py index bfe629a..94a2962 100755 --- a/dlibrary/dlibrary.py +++ b/dlibrary/dlibrary.py @@ -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)