Commit 65c622cf authored by Christian Rohlfing's avatar Christian Rohlfing
Browse files

Fixes case-insensitivity of endswith()

parent b50f1b7a
......@@ -77,7 +77,7 @@ def main(args):
starttime = time.time()
pdf_folder = os.listdir(infolder)
pdf_files = [_ for _ in pdf_folder
if _.endswith(".pdf")]
if _.lower().endswith(".pdf")]
print("""
Available PDFs to be encrypted:
- {}
......
......@@ -283,7 +283,7 @@ def main(args):
starttime = time.time()
pdf_folder = os.listdir(infolder)
pdf_files = [_ for _ in pdf_folder
if _.endswith(".pdf") and matnum_utils.starts_with_matnum(_)]
if _.lower().endswith(".pdf") and matnum_utils.starts_with_matnum(_)]
print("""
Available PDFs to be watermarked:
- {}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment