Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
RWTHmoodle
exam-scan
Commits
59abab78
Commit
59abab78
authored
Apr 27, 2021
by
Amrita Deb
Browse files
Merge branch 'rohlfing-fix-case-sensitive-file-ending' into 'master'
Fix case-sensitive file ending checks See merge request
!35
parents
1834a797
65c622cf
Changes
2
Hide whitespace changes
Inline
Side-by-side
encrypt.py
View file @
59abab78
...
...
@@ -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 @
59abab78
...
...
@@ -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
Supports
Markdown
0%
Try again
or
attach a new 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