Skip to content

Commit e47869d

Browse files
committed
Updated Syntax
Updated the syntax for RES:SELF and the corresponding process.
1 parent 43ed16a commit e47869d

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

core/process.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -476,6 +476,7 @@ def process_self(self, _list: list) -> list:
476476
_list[1] = _list[1][:6]
477477
new_list.append(_list[0])
478478
elif len(_list) == 4:
479+
new_list.append(_list[0])
479480
if len(_list[1]) == 5:
480481
new_list.append(_list[1][0])
481482
new_list.append(f"{_list[1][1:3]} Years; {_list[1][3:5]} Months")
@@ -535,6 +536,7 @@ def process_self(self, _list: list) -> list:
535536
new_list.append(f"{_list[3][9:11]} Years {_list[3][11:13]} Months")
536537

537538
elif len(_list) == 5:
539+
new_list.append(_list[0])
538540
if len(_list[1]) == 5:
539541
new_list.append(_list[1][0])
540542
new_list.append(f"{_list[1][1:3]} Years; {_list[1][3:5]} Months")

core/syntax.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -698,11 +698,11 @@ def residency_self_syntax(self, _list: list) -> list:
698698

699699
if output[-1] == '0000':
700700
return
701-
701+
702702
ans = self.p.process_self(output)
703703

704704
return ['Residency Information - continued:', '',
705-
'4. If you are not a U.S. Citizen or U.S. Permanent Resident, are youa foreign national',
705+
'4. If you are not a U.S. Citizen or U.S. Permanent Resident, are you a foreign national',
706706
'here with a visa eligible to domicile in the United States or are you a Refugee, Asylee,',
707707
'Parolee or here under Temporary Protective Status? If so, indicate which:', f'{ans[0]}', '',
708708
'5. Do you currently live in Texas?', f'{ans[1]}', '',

main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ def run(file: str, fileName: str) -> Union[int, int]:
164164
domestic, foreign = run(file, fileName)
165165

166166
# file, fileName = find_spe_file()
167-
# domestic, foreign = run_target(file, fileName, 'domestic', 11)
167+
# domestic, foreign = run_target(file, fileName, 'domestic', 13)
168168

169169
# filePath_list, fileName_list = find_spe_folder_files()
170170
# for idx in range(len(filePath_list)):

0 commit comments

Comments
 (0)