Skip to content

Commit 59b5d67

Browse files
committed
updated merge method to happen after the for loop
1 parent bea8897 commit 59b5d67

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

core/process.py

+8-5
Original file line numberDiff line numberDiff line change
@@ -311,16 +311,19 @@ def new_rearrange_list(self, _list: list, app_type: str) -> list:
311311
self.separate_list_section(apps, ('RQS!AQ!ZZ!$ 4!!', 'RQS!AQ!ZZ!$ 9!!'), 'RQS!AQ!ZZ!$ 11!!', 5, self.conduct_list)
312312
self.separate_list_section(apps, ('RQS!AQ!ZZ!RES: PREVIOUS ENROLLMENT!!'), 'RQS!AQ!ZZ!RES: DETERM!', 1, self.residency_list)
313313
self.separate_list_question(apps, idx, ('Consultant Agency\\', 'Consultant/Agency\\'), 3, self.consultant_list)
314-
self.new_consultant_list = self.merge_list_question(self.consultant_list)
315314
self.separate_list_question(apps, idx, 'RQS!AQ!ZZ!$ 1!!', 4, self.concentration_list)
316315
self.separate_list_question(apps, idx, 'Faculty Mentor\\', 4, self.faculty_list)
317316

318-
pprint(self.new_consultant_list)
317+
if len(self.consultant_list) != len(new_list):
318+
self.new_consultant_list = self.merge_list_question(self.consultant_list)
319+
320+
# pprint(self.consultant_list)
321+
pprint(len(self.consultant_list))
319322
print(len(self.new_consultant_list))
320-
# print(len(self.faculty_list))
321-
# print(len(self.concentration_list))
323+
print(len(self.faculty_list))
324+
print(len(self.concentration_list))
322325
# pprint(new_list[4])
323-
# print(len(new_list))
326+
print(len(new_list))
324327

325328
# for apps in new_list:
326329
# print(len(apps))

main.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def run(file_path: str, filename: str) -> None:
6565
spe_list = p.read_spe_file()
6666

6767
clean_list = p.remove_markdown_items(spe_list)
68-
new_list = p.new_rearrange_list(clean_list, 'International Graduate Admission')
68+
new_list = p.new_rearrange_list(clean_list, 'U.S. Transfer Admission')
6969
# new_list = p.rearrange_list(clean_list)
7070

7171
# translated_spe = []

0 commit comments

Comments
 (0)