Unverified Commit bd14d2cd authored by Joost Rijneveld's avatar Joost Rijneveld
Browse files

Fix broken chair migrations

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

This is not performed in production, since we've already migrated
parent df41cf23
......@@ -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