From ceefa3bdcd2c65bf858c593c52cd84c4175e00bd Mon Sep 17 00:00:00 2001 From: Joachim Filip Ignacy Bartosik Date: Mon, 20 Jun 2011 17:04:22 +0200 Subject: Bot sends information about voting options changes to web application --- bot/Reminder/conf/channels.conf | 0 bot/Reminder/conf/ignores.conf | 0 bot/Reminder/conf/userdata.conf | 0 bot/Reminder/conf/users.conf | 0 bot/ircmeeting/agenda.py | 3 ++- 5 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 bot/Reminder/conf/channels.conf create mode 100644 bot/Reminder/conf/ignores.conf create mode 100644 bot/Reminder/conf/userdata.conf create mode 100644 bot/Reminder/conf/users.conf diff --git a/bot/Reminder/conf/channels.conf b/bot/Reminder/conf/channels.conf new file mode 100644 index 0000000..e69de29 diff --git a/bot/Reminder/conf/ignores.conf b/bot/Reminder/conf/ignores.conf new file mode 100644 index 0000000..e69de29 diff --git a/bot/Reminder/conf/userdata.conf b/bot/Reminder/conf/userdata.conf new file mode 100644 index 0000000..e69de29 diff --git a/bot/Reminder/conf/users.conf b/bot/Reminder/conf/users.conf new file mode 100644 index 0000000..e69de29 diff --git a/bot/ircmeeting/agenda.py b/bot/ircmeeting/agenda.py index 8b9650c..a77aafe 100644 --- a/bot/ircmeeting/agenda.py +++ b/bot/ircmeeting/agenda.py @@ -220,7 +220,8 @@ class Agenda(object): def post_result(self): if not self.conf.manage_agenda: return('') - data = urllib.quote(json.dumps([self._votes])) + data_dict = {'votes' : self._votes, 'agenda' : self._agenda} + data = urllib.quote(json.dumps(data_dict)) result_url = str.format(self.conf.result_url, self.conf.voting_results_user, self.conf.voting_results_password) -- cgit v1.2.3-65-gdbad