projects
/
selectricity
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add XMLRPC call for getting a list of all QuickVotes
[selectricity]
/
app
/
models
/
selectricity_service.rb
diff --git
a/app/models/selectricity_service.rb
b/app/models/selectricity_service.rb
index 3f3e42ed4001796346d06d0278b0f8a8f704dd44..da58f71a0aa59ee3a0a31ff2f208b787e20dd55d 100644
(file)
--- a/
app/models/selectricity_service.rb
+++ b/
app/models/selectricity_service.rb
@@
-76,5
+76,11
@@
class SelectricityService < ActionWebService::Base
end
return votes
end
-
+ def list_quickvotes()
+ all=Array.new
+ QuickVote.find_all.each do |election|
+ all << ElectionStruct.new (:id => election.id, :name => election.name, :description => election.description)
+ end
+ return all
+ end
end
Benjamin Mako Hill
||
Want to submit a patch?