@@ -316,37 +316,34 @@ def new_rearrange_list(self, app_type: str, _list: list) -> list:
316
316
if app == app_type :
317
317
new_list .append (_list [idx ])
318
318
319
- pprint (new_list [- 7 ])
320
-
321
319
for idx , apps in enumerate (new_list ):
322
320
self .separate_list_section (apps , 'RQS!AQ!ZZ!FERPA CERT SWITCH!' , 'RQS!AQ!ZZ!TRUTH CERT SWITCH!' , 1 , self .cert_list )
323
321
self .separate_list_section (apps , 'SSE!' , 'RQS!AQ!ZZ!APP SUBMIT/TRANSMIT!!' , 1 , self .submit_list )
324
322
self .separate_list_section (apps , ('RQS!AQ!ZZ!$ 4!!' , 'RQS!AQ!ZZ!$ 9!!' ), 'RQS!AQ!ZZ!$ 11!!' , 5 , self .conduct_list )
325
323
self .separate_list_section (apps , 'RQS!AQ!ZZ!RES: PREVIOUS ENROLLMENT!!' , 'RQS!AQ!ZZ!RES: DETERM!' , 1 , self .residency_list )
326
324
self .separate_list_section (apps , 'TST!' , 'PCL' , 0 , self .test_list )
327
- # self.separate_list_question(apps, idx, ('Consultant Agency\\', 'Consultant/Agency\\'), 3, self.consultant_list)
325
+ self .separate_list_question (apps , idx , ('Consultant Agency\\ ' , 'Consultant/Agency\\ ' ), 3 , self .consultant_list )
328
326
self .separate_list_question (apps , idx , 'RQS!AQ!ZZ!$ 1!!' , 4 , self .concentration_list )
329
327
self .separate_list_question (apps , idx , 'Faculty Mentor\\ ' , 4 , self .faculty_list )
330
328
331
- # if len(self.consultant_list) != len(new_list):
332
- # self.new_consultant_list = self.merge_list_question(self.consultant_list)
329
+ if len (self .consultant_list ) != len (new_list ):
330
+ self .new_consultant_list = self .merge_list_question (self .consultant_list )
333
331
334
- # print(len(self.cert_list), len(self.submit_list), len(self.conduct_list), len(self.residency_list), len(self.test_list), len(self.consultant_list), len(self.concentration_list), len(self.faculty_list))
335
- # print(len(new_list))
332
+ print (len (self .cert_list ), len (self .submit_list ), len (self .conduct_list ), len (self .residency_list ), len (self .test_list ), len (self .consultant_list ), len (self .concentration_list ), len (self .faculty_list ))
333
+ print (len (new_list ))
336
334
337
- # pprint(self.residency_list[-7])
338
- # print(len(self.residency_list))
335
+ # pprint(self.concentration_list)
339
336
340
337
# Relocate each item in the separated list into the proper index
341
338
for idx , apps in enumerate (new_list ):
342
339
for items in range (len (self .concentration_list [idx ])- 1 ):
343
- for internals in self .concentration_list [idx ][items ]:
344
- apps .insert (0 , internals )
345
- for items in self .submit_list [idx ]:
340
+ for int_idx , internals in enumerate ( self .concentration_list [idx ][items ]) :
341
+ apps .insert (0 ,self . concentration_list [ idx ][ items ][ len ( self . concentration_list [ idx ][ items ]) - int_idx - 1 ] )
342
+ for sub_idx , items in enumerate ( self .submit_list [idx ]) :
346
343
apps .insert (0 , items )
347
- # for items in range(len(self.consultant_list[idx])-1):
348
- # for internals in self.consultant_list[idx][items]:
349
- # apps.append(internals)
344
+ for items in range (len (self .consultant_list [idx ])- 1 ):
345
+ for internals in self .consultant_list [idx ][items ]:
346
+ apps .append (internals )
350
347
for items in range (len (self .faculty_list [idx ])- 1 ):
351
348
for internals in self .faculty_list [idx ][items ]:
352
349
apps .append (internals )
@@ -358,8 +355,5 @@ def new_rearrange_list(self, app_type: str, _list: list) -> list:
358
355
apps .append (items )
359
356
for items in self .cert_list [idx ]:
360
357
apps .append (items )
361
-
362
- # pprint(new_list[-7])
363
- # print(len(new_list))
364
358
365
359
return new_list
0 commit comments