X-Git-Url: https://projects.mako.cc/source/selectricity-live/blobdiff_plain/73f1c8f028bb366d3d8d982084fa777181bce5b5..49bc919b9f7edd189a311cdb910ab0a7500030ac:/app/models/selectricity_service.rb diff --git a/app/models/selectricity_service.rb b/app/models/selectricity_service.rb index da58f71..e130375 100644 --- a/app/models/selectricity_service.rb +++ b/app/models/selectricity_service.rb @@ -79,7 +79,7 @@ class SelectricityService < ActionWebService::Base def list_quickvotes() all=Array.new QuickVote.find_all.each do |election| - all << ElectionStruct.new (:id => election.id, :name => election.name, :description => election.description) + all << ElectionStruct.new (:id => election.id, :name => election.name, :description => election.description, :candidates => election.candidates.collect {|c| c.id } ) end return all end