Skip to content

Commit 3d5b252

Browse files
committed
Use member's CN in attendance
1 parent fb82d2b commit 3d5b252

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

conditional/blueprints/attendance.py

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -32,17 +32,7 @@
3232

3333

3434
def get_name(m):
35-
if 'givenName' in m:
36-
first = m['givenName'][0].decode('utf-8')
37-
else:
38-
first = ""
39-
40-
if 'sn' in m:
41-
last = m['sn'][0].decode('utf-8')
42-
else:
43-
last = ""
44-
45-
return "{first} {last}".format(first=first, last=last)
35+
return m['cn'][0].decode('utf-8')
4636

4737

4838
@attendance_bp.route('/attendance/ts_members')

0 commit comments

Comments
 (0)