diff --git a/mentoring.py b/mentoring.py
index 8720376..7fc7457 100644
--- a/mentoring.py
+++ b/mentoring.py
@@ -3,10 +3,11 @@ import sys
def common(row):
row['tz'] = '
' + ''.join('- ' + t.split('(')[0] + '
' for t in row['Time Availability'].split('.')) + '
'
+ row['howlong'] = row.get('How long have you been in your current level', row.get('How long have you been in your organization level'))
rv = '''
Time Availability: {tz}
Organizational Level: {org}
-At Level: {How long have you been in your organization level}
+At Level: {howlong}
Organization: {Organization}
'''.format(**row)
if row.get('Interest in changing career track'):
@@ -48,7 +49,7 @@ def learner(row):
def main():
print("")
for row in csv.DictReader(sys.stdin):
- row['name'] = row['Full Name']
+ row['name'] = row.get('Full Name', row.get('Full name'))
row['org'] = row['Organizational level (i.e. P3, M2, etc.)']
if 'Interested in improving' in row:
row['ml'] = 'Learner'