Skip to content
Snippets Groups Projects
Commit 85e2f6a9 authored by Ben Adida's avatar Ben Adida
Browse files

got code back into legacy compatible mode

parent 4e1d985a
Branches
Tags
No related merge requests found
...@@ -392,7 +392,9 @@ class Election(HeliosObject): ...@@ -392,7 +392,9 @@ class Election(HeliosObject):
'frozen_at', 'public_key', 'private_key', 'cast_url', 'result', 'result_proof', 'use_voter_aliases', 'voting_starts_at', 'voting_ends_at', 'election_type'] 'frozen_at', 'public_key', 'private_key', 'cast_url', 'result', 'result_proof', 'use_voter_aliases', 'voting_starts_at', 'voting_ends_at', 'election_type']
JSON_FIELDS = ['uuid', 'questions', 'name', 'short_name', 'description', 'voters_hash', 'openreg', JSON_FIELDS = ['uuid', 'questions', 'name', 'short_name', 'description', 'voters_hash', 'openreg',
'frozen_at', 'public_key', 'cast_url', 'use_voter_aliases', 'voting_starts_at', 'voting_ends_at', 'election_type'] 'frozen_at', 'public_key', 'cast_url', 'use_voter_aliases', 'voting_starts_at', 'voting_ends_at']
# need to add in v3.1: use_advanced_audit_features, election_type, and probably more
def init_tally(self): def init_tally(self):
return Tally(election=self) return Tally(election=self)
......
{} {"cast_url": "http://localhost:8000/helios/elections/40a17486-1446-11e0-b9ec-000c293e7de1/cast", "description": "test1", "frozen_at": "2010-12-30 18:55:42", "name": "test1", "openreg": false, "public_key": {"g": "14887492224963187634282421537186040801304008017743492304481737382571933937568724473847106029915040150784031882206090286938661464458896494215273989547889201144857352611058572236578734319505128042602372864570426550855201448111746579871811249114781674309062693442442368697449970648232621880001709535143047913661432883287150003429802392229361583608686643243349727791976247247948618930423866180410558458272606627111270040091203073580238905303994472202930783207472394578498507764703191288249547659899997131166130259700604433891232298182348403175947450284433411265966789131024573629546048637848902243503970966798589660808533", "p": "16328632084933010002384055033805457329601614771185955389739167309086214800406465799038583634953752941675645562182498120750264980492381375579367675648771293800310370964745767014243638518442553823973482995267304044326777047662957480269391322789378384619428596446446984694306187644767462460965622580087564339212631775817895958409016676398975671266179637898557687317076177218843233150695157881061257053019133078545928983562221396313169622475509818442661047018436264806901023966236718367204710755935899013750306107738002364137917426595737403871114187750804346564731250609196846638183903982387884578266136503697493474682071", "q": "61329566248342901292543872769978950870633559608669337131139375508370458778917", "y": "10209996196141455592954150806595590302779517452973425513133143319891192812034378656046616286290215682512560281253780168350968078321298815359346112476103153663350347613425264137270664984993821707972591603600995748437418960965874687695519139184521329861807151368087170846679616051889191498465971754449242176181010116247194146889436200685706775658837872315899212063389435005791600156232673825152649290306522408636413180876447424057387927560622286232455842226141935616726284027452689619467330786904141326022591988410271656808992679125143841590661998535192138516435006042519265859141061154934003554664919161933342577547196"}, "questions": [{"answer_urls": [null, null, null], "answers": ["Alice", "Bob", "Carol"], "choice_type": "approval", "max": 1, "min": 0, "question": "Who should be president?", "result_type": "absolute", "short_name": "Who should be president?", "tally_type": "homomorphic"}], "short_name": "test1", "use_voter_aliases": false, "uuid": "40a17486-1446-11e0-b9ec-000c293e7de1", "voters_hash": null, "voting_ends_at": null, "voting_starts_at": null}
\ No newline at end of file \ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment