@election_admin(frozen=True)
def combine_decryptions(request, election):
  """
  combine trustee decryptions
  """

  election_url = get_election_url(election)

  if request.method == "POST":
    check_csrf(request)

    election.combine_decryptions()
    election.save()

    return HttpResponseRedirect((settings.SECURE_URL_HOST + reverse(one_election_view, args=[election.uuid])) % "%s")

  # if just viewing the form or the form is not valid
  return render_template(request, 'combine_decryptions', {'election': election})
dataset/ETHPy150Open benadida/helios-server/helios/views.py/combine_decryptions/swapped operands of `%`