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 28, 2024
1 parent 0a64365 commit 3db6351
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions core/structure.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,8 @@ def translate_DMG(self) -> str:

_translate = {
'M': 'Male',
'F': 'Female'
'F': 'Female',
'U': 'Prefer not to say'
}

if len(self.target) > 3:
Expand Down Expand Up @@ -742,7 +743,7 @@ def translate_MSG(self) -> list:
if idx != 0 and idx != len(self.target)-1:
_list.append(items)

if len(items) <= 3:
if self.target[-1] == 'DS':
_list.append('')
elif len(self.target) == 2 and len(self.target[1]) <= 31:
if (self.target[-1] != 'NO RESIDENCY COMMENTS INCLUDED'):
Expand Down

0 comments on commit 3db6351

Please sign in to comment.