@@ -150,17 +150,7 @@ def transform_page(self, val: str) -> str:
150150 :rtype: str
151151 """
152152
153- _str = str (self ._str ).split ("!" )
154-
155- transform_dict = {
156- 'Y' : 'Yes' ,
157- 'N' : 'No' ,
158- 'Y\\ ' : 'Yes' ,
159- 'N\\ ' : 'No' ,
160- 'NO RESIDENCY COMMENTS INCLUDED\\ ' : None
161- }
162-
163- output = transform_dict .get (_str [- 1 ], _str [- 1 ])
153+ _list = str (self ._str ).split ("!" )
164154
165155 four_mark_syntax = {
166156 "Start Parent 1 Contact Info" : "First Guardian/Parent Information:" ,
@@ -177,74 +167,74 @@ def transform_page(self, val: str) -> str:
177167 'Conduct Question: Expulsion' :'Conduct Question: Expulsion' ,
178168 'Conduct: Pending Action' : 'Conduct: Pending Action' ,
179169 'Consultant/Agency' : 'Consultant/Agency' ,
180- 'Submit/Transmit' : {_str [- 1 ]}
170+ 'Submit/Transmit' : {_list [- 1 ]}
181171 }
182172
183173 three_mark_syntax = {
184174 "Start Extra Contact Info" : None ,
185175 "Start Student Contact Info" : "Student Information:" ,
186- "Extra Curricular Activities" : f"{ _str [- 5 :- 4 ]} " ,
187- "Community or Volunteer Service" : f"{ _str [- 4 :- 2 ]} " ,
188- "Award/Acheivement" : f"{ _str [- 5 :- 4 ]} " ,
189- "Employment/Internships/Summer Activities" :f"{ _str [- 4 :- 3 ]} " ,
190- 'Major' : f"Major: { _str [- 1 ]} " ,
191- "Area of Interest" : f"Area of Interest: { _str [- 1 ]} " ,
192- 'Request and/or Answer' : _str [- 1 ],
193- 'Long REQ' : _str ,
194- 'Short REQ' : _str [- 1 ],
195- 'Med REQ' : _str ,
196- "Senior Year Course(s)" : _str ,
197- "Issued Date" : f"Issued: { _str [- 1 ]} "
176+ "Extra Curricular Activities" : f"{ _list [- 5 :- 4 ]} " ,
177+ "Community or Volunteer Service" : f"{ _list [- 4 :- 2 ]} " ,
178+ "Award/Acheivement" : f"{ _list [- 5 :- 4 ]} " ,
179+ "Employment/Internships/Summer Activities" :f"{ _list [- 4 :- 3 ]} " ,
180+ 'Major' : f"Major: { _list [- 1 ]} " ,
181+ "Area of Interest" : f"Area of Interest: { _list [- 1 ]} " ,
182+ 'Request and/or Answer' : _list [- 1 ],
183+ 'Long REQ' : _list ,
184+ 'Short REQ' : _list [- 1 ],
185+ 'Med REQ' : _list ,
186+ "Senior Year Course(s)" : _list ,
187+ "Issued Date" : f"Issued: { _list [- 1 ]} "
198188 }
199189
200190 two_mark_syntax = {
201191 "Start App" : "Start of App" ,
202192 "TXAPP" : "ApplyTexas Application" ,
203193 "AT" : None ,
204- "App ID" : _str [ - 1 ] ,
205- "Date Start" : f"Date Start: { _str [- 1 ]} " ,
206- "Data End" : f"Date End: { _str [- 1 ]} " ,
207- "SSN" : _str [ - 2 :] ,
208- "Premanent Residence status" : _str [- 1 ],
209- "Sir Name" : _str [- 1 ],
210- "Last Name" : f"Last: { _str [- 1 ]} " ,
211- "First Name" : f"First: { _str [- 1 ]} " ,
212- "Middle Name" : f"Middle: { _str [- 1 ]} " ,
213- "Middle Initial" : f"MIddle Initial: { _str [- 1 ]} " ,
214- "Suffix" : f"Suffix: { _str [- 1 ]} " ,
215- "Representative Name" : f"Rep Name: { _str [- 1 ]} " ,
216- "Preferred Name" : f"Preferred: { _str [- 1 ]} " ,
194+ "App ID" : None ,
195+ "Date Start" : f"Date Start: { _list [- 1 ]} " ,
196+ "Data End" : f"Date End: { _list [- 1 ]} " ,
197+ "SSN" : None ,
198+ "Premanent Residence status" : _list [- 1 ],
199+ "Sir Name" : _list [- 1 ],
200+ "Last Name" : f"Last: { _list [- 1 ]} " ,
201+ "First Name" : f"First: { _list [- 1 ]} " ,
202+ "Middle Name" : f"Middle: { _list [- 1 ]} " ,
203+ "Middle Initial" : f"MIddle Initial: { _list [- 1 ]} " ,
204+ "Suffix" : f"Suffix: { _list [- 1 ]} " ,
205+ "Representative Name" : f"Rep Name: { _list [- 1 ]} " ,
206+ "Preferred Name" : f"Preferred: { _list [- 1 ]} " ,
217207 "Student Gender" : None ,
218- "Phone" : f"Phone: { _str [- 1 ]} " ,
219- "Email" : f"Email: { _str [- 1 ]} " ,
220- "Question Answer" : _str [- 2 :- 1 ],
221- "Graduation Date" : f"Expected Graduation Date: { _str [- 1 ]} " ,
222- "High School Info" : f"School Code: { _str [- 1 ]} " ,
223- "Current enrolled course" : _str ,
208+ "Phone" : f"Phone: { _list [- 1 ]} " ,
209+ "Email" : f"Email: { _list [- 1 ]} " ,
210+ "Question Answer" : _list [- 2 :- 1 ],
211+ "Graduation Date" : f"Expected Graduation Date: { _list [- 1 ][: - 3 ] } - { _list [ - 1 ][ - 3 : ]} " ,
212+ "High School Info" : f"School Code: { _list [- 1 ]} " ,
213+ "Current enrolled course" : _list ,
224214 "Previous Applicant" : f"Previous Applicant: Yes" ,
225- "VISA Info" : f"Visa: { _str [- 1 ]} " ,
226- "VISA end date" : f"End date: { _str [- 1 ]} "
215+ "VISA Info" : f"Visa: { _list [- 1 ]} " ,
216+ "VISA end date" : f"End date: { _list [- 1 ]} "
227217 }
228218
229219 one_mark_syntax = {
230- "Place of Birth" : f"Place of Birth: { _str [- 3 :]} " ,
231- "Ethnicity/Race" : _str [- 1 ],
232- "Address One" : f"Address: { _str [- 1 ]} " ,
233- "Address Two" : f" { _str [ 1 :] } " ,
234- "Semester" : f"Semester: { _str [- 1 ]} " ,
235- "Question statement" : _str [- 2 :- 1 ],
236- "Grade level" : f"Date: { _str [1 ]} " ,
237- "Admissions Test" : _str ,
238- "Post-Secondary Colleges/Universities" : f"Institution: { _str [- 1 ]} " ,
239- "Hours Earned" : f"Hours Earned: { _str [- 1 ]} " ,
220+ "Place of Birth" : f"Place of Birth: { _list [- 3 :]} " ,
221+ "Ethnicity/Race" : _list [- 1 ],
222+ "Address One" : f"Address: { _list [- 1 ]} " ,
223+ "Address Two" : None ,
224+ "Semester" : f"Semester: { _list [- 1 ]} " ,
225+ "Question statement" : _list [- 2 :- 1 ],
226+ "Grade level" : None , # f"Date: {_list [1]}",
227+ "Admissions Test" : _list ,
228+ "Post-Secondary Colleges/Universities" : f"Institution: { _list [- 1 ]} " ,
229+ "Hours Earned" : f"Hours Earned: { _list [- 1 ]} " ,
240230 "End of App" : "End of App" ,
241- "Degree Earned" : f"Degree: { _str [- 1 ]} " ,
231+ "Degree Earned" : f"Degree: { _list [- 1 ]} " ,
242232 "Skip" : None ,
243- 'Transfer Information' : _str ,
244- "Language" : _str ,
245- "Old Admission Test Score" : _str ,
246- "Old Admission Test" : _str ,
247- "Short MSG" : output
233+ 'Transfer Information' : _list ,
234+ "Language" : _list ,
235+ "Old Admission Test Score" : _list ,
236+ "Old Admission Test" : _list ,
237+ "Short MSG" : None
248238 }
249239
250240 converted_mark = ""
@@ -257,17 +247,27 @@ def transform_page(self, val: str) -> str:
257247 for key , value in dictionaries [idx ].items ():
258248 if key == val :
259249 if key == "Med REQ" or key == "Long REQ" :
260- value = v .long_med_req_value (_str )
250+ value = v .long_med_req_value (_list )
261251 elif key == "Request and/or Answer" :
262- value = v .req_and_or_answer_value (_str )
252+ value = v .req_and_or_answer_value (_list )
263253 elif key == 'Multi type question' or key == "Degree Earned" or key == 'Semester' :
264- value = v .additional_value (_str )
254+ value = v .additional_value (_list )
265255 elif key == 'Ethnicity/Race' :
266- value = v .ethnicity_race_value (_str )
256+ value = v .ethnicity_race_value (_list )
257+ elif key == 'Address Two' :
258+ value = v .address_value (_list )
267259 elif key == 'Student Gender' :
268- value = v .gender_value (_str )
260+ value = v .gender_value (_list )
269261 elif key == 'Start Extra Contact Info' :
270- value = v .extra_value (_str )
262+ value = v .extra_value (_list )
263+ elif key == 'App ID' :
264+ value = v .app_value (_list )
265+ elif key == 'SSN' :
266+ value = v .ssn_value (_list )
267+ elif key == 'Short MSG' :
268+ value = v .short_msg_value (_list )
269+ elif key == 'Grade level' :
270+ value = v .grade_level_value (_list )
271271
272272 converted_mark = str (value ).replace ("\\ " , "" )
273273 break
0 commit comments