Skip to content

Commit

Permalink
updated merge method to happen after the for loop
Browse files Browse the repository at this point in the history
  • Loading branch information
Nick-prog committed Aug 12, 2024
1 parent bea8897 commit 59b5d67
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
13 changes: 8 additions & 5 deletions core/process.py
Original file line number Diff line number Diff line change
Expand Up @@ -311,16 +311,19 @@ def new_rearrange_list(self, _list: list, app_type: str) -> list:
self.separate_list_section(apps, ('RQS!AQ!ZZ!$ 4!!', 'RQS!AQ!ZZ!$ 9!!'), 'RQS!AQ!ZZ!$ 11!!', 5, self.conduct_list)
self.separate_list_section(apps, ('RQS!AQ!ZZ!RES: PREVIOUS ENROLLMENT!!'), 'RQS!AQ!ZZ!RES: DETERM!', 1, self.residency_list)
self.separate_list_question(apps, idx, ('Consultant Agency\\', 'Consultant/Agency\\'), 3, self.consultant_list)
self.new_consultant_list = self.merge_list_question(self.consultant_list)
self.separate_list_question(apps, idx, 'RQS!AQ!ZZ!$ 1!!', 4, self.concentration_list)
self.separate_list_question(apps, idx, 'Faculty Mentor\\', 4, self.faculty_list)

pprint(self.new_consultant_list)
if len(self.consultant_list) != len(new_list):
self.new_consultant_list = self.merge_list_question(self.consultant_list)

# pprint(self.consultant_list)
pprint(len(self.consultant_list))
print(len(self.new_consultant_list))
# print(len(self.faculty_list))
# print(len(self.concentration_list))
print(len(self.faculty_list))
print(len(self.concentration_list))
# pprint(new_list[4])
# print(len(new_list))
print(len(new_list))

# for apps in new_list:
# print(len(apps))
Expand Down
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def run(file_path: str, filename: str) -> None:
spe_list = p.read_spe_file()

clean_list = p.remove_markdown_items(spe_list)
new_list = p.new_rearrange_list(clean_list, 'International Graduate Admission')
new_list = p.new_rearrange_list(clean_list, 'U.S. Transfer Admission')
# new_list = p.rearrange_list(clean_list)

# translated_spe = []
Expand Down

0 comments on commit 59b5d67

Please sign in to comment.