aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoachim Filip Ignacy Bartosik <jbartosik@gmail.com>2011-06-20 17:04:22 +0200
committerJoachim Filip Ignacy Bartosik <jbartosik@gmail.com>2011-06-25 14:12:13 +0200
commitceefa3bdcd2c65bf858c593c52cd84c4175e00bd (patch)
treecaa17064819edcf6904bb3ce2a8d3ce43ef452a4
parentMerge remote-tracking branch 'github/time_limit' (diff)
downloadcouncil-webapp-ceefa3bdcd2c65bf858c593c52cd84c4175e00bd.tar.gz
council-webapp-ceefa3bdcd2c65bf858c593c52cd84c4175e00bd.tar.bz2
council-webapp-ceefa3bdcd2c65bf858c593c52cd84c4175e00bd.zip
Bot sends information about voting options changes to web application
-rw-r--r--bot/Reminder/conf/channels.conf0
-rw-r--r--bot/Reminder/conf/ignores.conf0
-rw-r--r--bot/Reminder/conf/userdata.conf0
-rw-r--r--bot/Reminder/conf/users.conf0
-rw-r--r--bot/ircmeeting/agenda.py3
5 files changed, 2 insertions, 1 deletions
diff --git a/bot/Reminder/conf/channels.conf b/bot/Reminder/conf/channels.conf
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/bot/Reminder/conf/channels.conf
diff --git a/bot/Reminder/conf/ignores.conf b/bot/Reminder/conf/ignores.conf
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/bot/Reminder/conf/ignores.conf
diff --git a/bot/Reminder/conf/userdata.conf b/bot/Reminder/conf/userdata.conf
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/bot/Reminder/conf/userdata.conf
diff --git a/bot/Reminder/conf/users.conf b/bot/Reminder/conf/users.conf
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/bot/Reminder/conf/users.conf
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)