Removed two instances of log.assertion(); we have enough data on these now.
- Legacy-Id: 15252
This commit is contained in:
parent
bf3074e493
commit
a3c12d937f
|
@ -593,7 +593,6 @@ def ballot_writeupnotes(request, name):
|
|||
if "issue_ballot" in request.POST:
|
||||
e = create_ballot_if_not_open(request, doc, login, "approve") # pyflakes:ignore
|
||||
ballot = doc.latest_event(BallotDocEvent, type="created_ballot")
|
||||
log.assertion('ballot == e')
|
||||
if has_role(request.user, "Area Director") and not doc.latest_event(BallotPositionDocEvent, ad=login, ballot=ballot):
|
||||
# sending the ballot counts as a yes
|
||||
pos = BallotPositionDocEvent(doc=doc, rev=doc.rev, by=login)
|
||||
|
|
|
@ -61,7 +61,6 @@ def change_state(request, name, option=None):
|
|||
if new_state.slug == "iesgeval":
|
||||
e = create_ballot_if_not_open(request, status_change, login, "statchg", status_change.time) # pyflakes:ignore
|
||||
ballot = status_change.latest_event(BallotDocEvent, type="created_ballot")
|
||||
log.assertion('ballot == e')
|
||||
if has_role(request.user, "Area Director") and not status_change.latest_event(BallotPositionDocEvent, ad=login, ballot=ballot, type="changed_ballot_position"):
|
||||
|
||||
# The AD putting a status change into iesgeval who doesn't already have a position is saying "yes"
|
||||
|
|
Loading…
Reference in a new issue