Verified Commit d7c8e4e5 authored by Sébastiaan Versteeg's avatar Sébastiaan Versteeg
Browse files

Fix member achievements in

parent 0fac9c0a
...@@ -18,14 +18,14 @@ def member_achievements(member): ...@@ -18,14 +18,14 @@ def member_achievements(member):
'chair': membership.chair 'chair': membership.chair
} }
if hasattr(membership.committee, 'board'): if hasattr(, 'board'):
period['role'] = membership.role period['role'] = membership.role
if (membership.until is None and if (membership.until is None and
hasattr(membership.committee, 'board')): hasattr(, 'board')):
period['until'] = membership.committee.board.until period['until'] =
name = name =
if achievements.get(name): if achievements.get(name):
achievements[name]['periods'].append(period) achievements[name]['periods'].append(period)
if achievements[name]['earliest'] > membership.since: 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