Skip to content

Commit d747c0e

Browse files
committed
Updated Values
Added more information for transient and emergency contracts. Extended the third page again for outliers. Need to either find a way to automatically adjust page sizes or make a fourth page.
1 parent 50b4952 commit d747c0e

File tree

4 files changed

+9
-5
lines changed

4 files changed

+9
-5
lines changed

core/reportgen.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ def handle_third_page(self, canvas: object, select_app: int, last_idx: int) -> N
364364

365365
# Starting points
366366
xstart = self.xstart
367-
ystart = self.ystart+720 # Increase by 80 every 1 inch height
367+
ystart = self.ystart+880 # Increase by 80 every 1 inch height
368368

369369
#Increment
370370
yadd = 0
@@ -375,7 +375,8 @@ def handle_third_page(self, canvas: object, select_app: int, last_idx: int) -> N
375375
current_idx = last_idx
376376

377377
canvas.setFont("Courier", 7)
378-
canvas.setPageSize((8.5*inch, 28*inch))
378+
canvas.setPageSize((8.5*inch, len(self.page_3)*inch))
379+
canvas.setPageSize((8.5*inch, 30*inch))
379380
# canvas.setFillColor(HexColor('#FFFFFF'))
380381

381382
paragraph_start = ['Faculty Mentor ?', 'Consultant/Agency', 'Text Messaging Option',

core/reportstructure.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ def page_structure(self) -> str:
3737
'RQSAQZZ$ 10': 'Conduct Question: Expulsion',
3838
'RQSAQZZ$ 11': 'Conduct: Pending Action',
3939
'RQSAQZZ$ 12': 'Consultant/Agency',
40+
'RQSAQZZ$ 13': 'Faculty Mentor ?',
4041
'RQSAQZZAPP SUBMIT/TRANSMIT': 'Submit/Transmit'
4142
}
4243

core/values.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,8 @@ def extra_value(self, _list: list, key: str) -> str:
343343
extra_ = {
344344
'01': 'Spouse Contact Information:',
345345
'02': 'Child Information:',
346-
'51': 'Emergency Contact Information:'
346+
'51': 'Emergency Contact Information:',
347+
'34': 'Emergency Contact Information:'
347348
}
348349

349350
return extra_[target]
@@ -362,7 +363,8 @@ def app_value(self, _list: list, key: str) -> str:
362363
'GUS GRAD APPLICATION ID': 'U.S. Graduate Admission',
363364
'TUS TRANSFER APPLICATION ID': 'U.S. Transfer Admission',
364365
'AFOREIGN TRANSFER APPLICATION ID': 'International Transfer Admission',
365-
'BFOREIGN FRESHMAN APPLICATION ID': 'International Freshman Admission'
366+
'BFOREIGN FRESHMAN APPLICATION ID': 'International Freshman Admission',
367+
'SUS TRANSIENT APPLICATION ID': 'Transient Admission'
366368
}
367369

368370
return f'App ID: {_list[-2]}|{app_[target]}'

main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ def run(file: str, fileName: str) -> Union[int, int]:
164164
domestic, foreign = run(file, fileName)
165165

166166
# file, fileName = find_spe_file()
167-
# domestic, foreign = run_target(file, fileName, 'foreign', 4)
167+
# domestic, foreign = run_target(file, fileName, 'foreign', 0)
168168

169169
# filePath_list, fileName_list = find_spe_folder_files()
170170
# for idx in range(len(filePath_list)):

0 commit comments

Comments
 (0)