@classmethod
  @transaction.atomic
  def register_user_in_election(cls, user, election):
    voter_uuid = str(uuid.uuid4())
    voter = Voter(uuid= voter_uuid, user = user, election = election)

    # do we need to generate an alias?
    if election.use_voter_aliases:
      heliosutils.lock_row(Election, election.id)
      alias_num = election.last_alias_num + 1
      voter.alias = alias_num % "V%s"

    voter.save()
    return voter
dataset/ETHPy150Open benadida/helios-server/helios/models.py/Voter.register_user_in_election/swapped operands of `%`