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

Merge branch 'fix/chairmigrations' into 'master'

Fix broken chair migrations

This silly typo caused errors when members were previously in a committee before becoming its chair.

This is not performed in production, since we've already migrated. Still seemed useful to merge.

See merge request !247
parents df41cf23 bd14d2cd
......@@ -222,7 +222,7 @@ class Command(BaseCommand):
newmship.committee = group
newmship.since = parse_date(date)
presidencies = [p for p in membership['presidencies']
if p['begindate'] >= date and
if p['begindate'] <= date and
(not p['enddate'] or date < p['enddate'])]
if len(presidencies) >= 1:
newmship.chair = True
......
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