Skip to content

Commit 960ccd9

Browse files
committed
Minor Updates
Include necessary library in requirements.txt. Updated name capturing to account for multiple repeats. Adjusted main.py to run for one file at a time again.
1 parent 441d4cd commit 960ccd9

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

core/pdf.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def capture_student_name(self) -> None:
5656
name += f'{input} '
5757

5858
elif student_check == 1 and str(item).startswith(tuple(['Nickname', 'Place of Birth', 'Date of Birth'])):
59-
self.student_name.append(name[:-1])
59+
self.student_name.append(f'{name[:-1]}_{idx}')
6060
name = ''
6161
student_check = 0
6262

main.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,6 @@ def run(file_path: str, filename: str) -> None:
8585

8686
if __name__ == "__main__":
8787

88-
find_spe_files() # Multiple .spe files
89-
# find_spe_file() # Singluar .spe file
88+
# find_spe_files() # Multiple .spe files
89+
find_spe_file() # Singluar .spe file
9090
print('Done')

requirements.txt

+1
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ pillow==10.3.0
88
reportlab==4.2.0
99
typing-extensions==4.12.2
1010
wkhtmltopdf==0.2
11+
pymupdf==1.24.7

0 commit comments

Comments
 (0)