Fix problem with running script again when there are existing ballot

events
 - Legacy-Id: 4343
This commit is contained in:
Ole Laursen 2012-04-30 18:24:28 +00:00
parent 2eec257dc8
commit 7f5a86f5dd

View file

@ -88,7 +88,7 @@ for d in relevant_docs.iterator():
print "MISSING ballot issue event, added ballot for", d.name
if e.type == "changed_ballot_position" and not e.ballotpositiondocevent.ballot:
e.ballotpositiondocevent.ballot = ballot
e.ballotpositiondocevent.ballot_id = ballot.id
e.ballotpositiondocevent.save()
if e.type in ("iesg_approved", "iesg_disapproved") and ballot: