Skip to content

Commit

Permalink
[fix] correct migration of committee name
Browse files Browse the repository at this point in the history
  • Loading branch information
stef committed Jun 10, 2011
1 parent 01665e2 commit b77fb0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion migration/part-04-jsontosql.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ def _create_role(functions, _mep):
_begin = date(int(b["year"]), int(b["month"]), int(b["day"]))
e = f["end_term"]
_end = date(int(e["year"]), int(e["month"]), int(e["day"]))
CommitteeRole.objects.create(mep=_mep, role=f["role"], delegation=Delegation.objects.get(name=f["label"]), begin=_begin, end=_end)
CommitteeRole.objects.create(mep=_mep, role=f["role"], delegation=Committee.objects.get(abbreviation=f["abbreviation"]), begin=_begin, end=_end)

def _create_cv(cv, _mep):
if type(cv) is list:
Expand Down

0 comments on commit b77fb0d

Please sign in to comment.