diff options
Diffstat (limited to 'bot/ircmeeting/agenda.py')
-rw-r--r-- | bot/ircmeeting/agenda.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/bot/ircmeeting/agenda.py b/bot/ircmeeting/agenda.py index 7ee9beb..4f0bd00 100644 --- a/bot/ircmeeting/agenda.py +++ b/bot/ircmeeting/agenda.py @@ -89,3 +89,10 @@ class Agenda(object): str = urllib.unquote(str) result = json.loads(str) return result + + def post_result(self): + data = urllib.quote(json.dumps([self._votes])) + result_url = str.format(self.conf.result_url, + self.conf.voting_results_user, + self.conf.voting_results_password) + urllib.urlopen(result_url, data = data) |