Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
RWTHmoodle
exam-scan
Commits
65c622cf
Commit
65c622cf
authored
Apr 26, 2021
by
Christian Rohlfing
Browse files
Fixes case-insensitivity of endswith()
parent
b50f1b7a
Changes
2
Hide whitespace changes
Inline
Side-by-side
encrypt.py
View file @
65c622cf
...
...
@@ -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:
- {}
...
...
watermark.py
View file @
65c622cf
...
...
@@ -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:
- {}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment