Skip to content
Snippets Groups Projects
Commit 074c85fe authored by Recolic Keghart's avatar Recolic Keghart
Browse files

feature request: make ID-matching case-insensetive in PROGRAM BETA

parent 985a5e1c
No related branches found
No related tags found
No related merge requests found
......@@ -100,7 +100,7 @@ def add_product(serial, _id, name, quantity, load_xlsx=False, allow_recursive_pa
for (dirpath, dirnames, filenames) in os.walk(config.library_path):
for fname in filenames:
if fname.startswith(_id):
if fname.lower().startswith(_id.lower()):
if is_pdf(fname):
found_pdf = dirpath + os.path.sep + fname
elif is_xlsx(fname):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment