@@ -380,37 +380,28 @@ def vet_syntax(self, _list: list) -> list:
380380 return
381381
382382 syntax = {
383- '1' : '\n Veteran ' ,
384- '2' : '\n Current US Miliary Service Member' ,
385- '3' : '\n Spouse or Dependen of Veteran or Current Service Member' ,
386- '4' : '\n Spouce or dependent of, or a veteran or current U.S. military servicemember with injury or illness' ,
383+ '1' : 'Veteran ' ,
384+ '2' : 'Current US Miliary Service Member' ,
385+ '3' : 'Spouse or Dependen of Veteran or Current Service Member' ,
386+ '4' : 'Spouce or dependent of, or a veteran or current U.S. military servicemember with injury or illness' ,
387387 '4+' : 'resulting from military service (service-connected injury/illness)' ,
388- '5' : '\n Spouse or dependent of deceased US servicemember'
388+ '5' : 'Spouse or dependent of deceased US servicemember'
389389 }
390390
391- target = str (_list [- 1 ]).replace ("\\ " , "" )
392-
393- output = [ str ( val ) for val in target ]
391+ output = [ str (val ) for val in str ( _list [- 1 ]).replace ("\\ " , "" )]
392+ output . insert ( 0 , 'U.S. Military-Veteran Status?' )
393+ output . append ( " " )
394394
395395 for idx in range (len (output )):
396396 if output [idx ] == '4' :
397397 output .insert (idx + 1 , '4+' )
398398
399-
400399 for idx in range (len (output )):
401400 for key , value in syntax .items ():
402401 if key == output [idx ]:
403402 output [idx ] = value
404403
405- if len (output ) == 1 :
406- return ['U.S. Military-Veteran Status?' ,
407- f'{ output } ' ]
408- elif len (output ) == 2 :
409- return ['U.S. Military-Veteran Status?' ,
410- f'{ output [0 ]} ' , f'{ output [1 ]} ' ]
411- elif len (output ) == 3 :
412- return ['U.S. Military-Veteran Status?' ,
413- f'{ output [0 ]} ' , f'{ output [1 ]} ' , f'{ output [2 ]} ' ]
404+ return output
414405
415406 def home_syntax (self , _list : list ) -> list :
416407
@@ -505,7 +496,22 @@ def app_share_syntax(self, _list: list) -> list:
505496 target = value
506497
507498 return ['Application sharing on denied admission?' ,
508- f'{ target } ' ]
499+ f'{ target } ' , '' ]
500+
501+ def phi_theta_kappa_syntax (self , _list : list ) -> list :
502+
503+ if _list [3 ] != 'PHI THETA KAPPA' :
504+ return
505+
506+ syntax = {
507+ 'N\\ ' : 'No' ,
508+ 'Y\\ ' : 'Yes'
509+ }
510+
511+ output = syntax .get (_list [- 1 ], _list [- 1 ])
512+
513+ return ['Are you a Phi Theta Kappa?' ,
514+ f'{ output } ' , '' ]
509515
510516 def residency_determ_syntax (self , _list : list ) -> list :
511517
0 commit comments