Commit 0dcbacf5 authored by Luko van der Maas's avatar Luko van der Maas
Browse files

Merge branch 'fix/member-profile' into 'master'

Fix member achievements in services.py

See merge request !963
parents c9173ffa d7c8e4e5
......@@ -18,14 +18,14 @@ def member_achievements(member):
'chair': membership.chair
}
if hasattr(membership.committee, 'board'):
if hasattr(membership.group, 'board'):
period['role'] = membership.role
if (membership.until is None and
hasattr(membership.committee, 'board')):
period['until'] = membership.committee.board.until
hasattr(membership.group, 'board')):
period['until'] = membership.group.board.until
name = membership.committee.name
name = membership.group.name
if achievements.get(name):
achievements[name]['periods'].append(period)
if achievements[name]['earliest'] > membership.since:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment