Skip to content

Commit

Permalink
Update structure.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Nick-prog committed Jun 25, 2024
1 parent 6c0db0e commit 55dd57d
Showing 1 changed file with 31 additions and 17 deletions.
48 changes: 31 additions & 17 deletions core/structure.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def __init__(self, _list: list, idx: int):
'QZZ': 0
}
self.cur_college_crs_check = 0
self.general_comments_check = 0
self.res_comments_check = 0

def error_handler(self, markdown: str, text: str) -> None:

Expand Down Expand Up @@ -160,7 +160,11 @@ def translate_CRS(self) -> str:
self.crs_check = 1
_list = ['', '4. Please list exact titles of courses to be completed your senior year and the number of',
'credits you will earn for each. Include college coursework you will complete your senior',
'year.', '', self.target[-1]]
'year.', '',
'AP|Sem(s) or Dual Cred/',
'IB|Tri(s) Concurrrent',
' 1|2 Senior Courses Enrollment',
self.target[-1]]
else:
_list.append(self.target[-1])
else:
Expand Down Expand Up @@ -447,17 +451,17 @@ def translate_PCL(self) -> list:

if self.post_check == 0:
self.post_check = 1
return ['', '1. Please list ALL post-secondary colleges or universities you have previously attended or',
return ['', '4. Please list ALL post-secondary colleges or universities you have previously attended or',
'are presently attending, including for extension, correspondence, and distance learning',
'credit, starting with the most recent. Failure to list all institutions will be considered',
'an intentional omission an may lead to forced withdrawal.', '',
f'Name of Insitition: {institution}',
f'Code: {code}',
f'Dates Attended: {dates}', '']
f'Dates Attended: {dates}']

return [f'Name of Insitition: {institution}',
return ['', f'Name of Insitition: {institution}',
f'Code: {code}',
f'Dates Attended: {dates}', '']
f'Dates Attended: {dates}']

def translate_REF(self) -> str:

Expand Down Expand Up @@ -513,12 +517,22 @@ def translate_RQS(self) -> list:
if self.cur_college_crs_check == 0:
self.cur_college_crs_check = 1
return ['6. List courses to be completed during the present semester (if applicable). If you will',
'complete an additional term before enrolling at Texas A&M University-Kingsville (TAMKI),',
'list those courses also. If you need to list more than 10 courses, please send a list',
'directly to the graduate admissions office at Texas A&M University-Kingsville (TAMKI). Be',
'sure to include your full name, application ID number and date of birth on any documents',
'you send to the admissions office.',
self.target[-1], '']
'complete an additional term before enrolling at Texas A&M University-Kingsville (TAMKI),',
'list those courses also. If you need to list more than 10 courses, please send a list',
'directly to the graduate admissions office at Texas A&M University-Kingsville (TAMKI). Be',
'sure to include your full name, application ID number and date of birth on any documents',
'you send to the admissions office.',
self.target[-1], '']
return [self.target[-1], '']

if self.target[3] == 'RES: COMMENTS':
if self.res_comments_check == 0:
self.res_comments_check = 1
return ['General Comments:',
'Is there any additional information that you believe your college should know in',
'evaluating your eligibility to be classified as a resident? If so, please provide it',
'below.',
self.target[-1], '']
return [self.target[-1], '']

basic_output = s._syntax.get(self.target[-1], self.target[-1])
Expand Down Expand Up @@ -646,11 +660,11 @@ def translate_MSG(self) -> list:
_list.append(str(temp).strip())
temp = ''

if temp:
if self.general_comments_check == 0:
self.general_comments_check = 1
return ['General Comments:', self.target[-1]]
return [self.target[-1]]
# if temp:
# if self.general_comments_check == 0:
# self.general_comments_check = 1
# return ['General Comments:', self.target[-1]]
# return [self.target[-1]]

_list.insert(0, '9. Mailing/Permanent Address:')
_list.append('')
Expand Down

0 comments on commit 55dd57d

Please sign in to comment.