aboutsummaryrefslogtreecommitdiff
path: root/bot
diff options
context:
space:
mode:
authorJoachim Filip Ignacy Bartosik <jbartosik@gmail.com>2011-06-27 16:19:44 +0200
committerJoachim Filip Ignacy Bartosik <jbartosik@gmail.com>2011-06-27 16:19:44 +0200
commitae6e10d99051e6e8930e2a816e6545b9f9edb3fa (patch)
tree648e36674153aa44289689fa1537352cb9b78a09 /bot
parentApplication receives data from bot (diff)
downloadcouncil-webapp-ae6e10d99051e6e8930e2a816e6545b9f9edb3fa.tar.gz
council-webapp-ae6e10d99051e6e8930e2a816e6545b9f9edb3fa.tar.bz2
council-webapp-ae6e10d99051e6e8930e2a816e6545b9f9edb3fa.zip
Bot posts log to the website
Diffstat (limited to 'bot')
-rw-r--r--bot/ircmeeting/agenda.py5
-rw-r--r--bot/ircmeeting/meeting.py2
2 files changed, 4 insertions, 3 deletions
diff --git a/bot/ircmeeting/agenda.py b/bot/ircmeeting/agenda.py
index a77aafe..05e4a57 100644
--- a/bot/ircmeeting/agenda.py
+++ b/bot/ircmeeting/agenda.py
@@ -217,10 +217,11 @@ class Agenda(object):
result = str.format(self.timelimit_missing_msg, message)
return(result)
- def post_result(self):
+ def post_result(self, lines):
if not self.conf.manage_agenda:
return('')
- data_dict = {'votes' : self._votes, 'agenda' : self._agenda}
+ data_dict = {'votes' : self._votes, 'agenda' : self._agenda,
+ 'lines' : "\n".join(lines)}
data = urllib.quote(json.dumps(data_dict))
result_url = str.format(self.conf.result_url,
self.conf.voting_results_user,
diff --git a/bot/ircmeeting/meeting.py b/bot/ircmeeting/meeting.py
index a86c782..a15b674 100644
--- a/bot/ircmeeting/meeting.py
+++ b/bot/ircmeeting/meeting.py
@@ -380,7 +380,7 @@ class MeetingCommands(object):
for messageline in message.split('\n'):
self.reply(messageline)
self._meetingIsOver = True
- self.config.agenda.post_result()
+ self.config.agenda.post_result(self.lines)
def do_topic(self, nick, line, **kwargs):
"""Set a new topic in the channel."""
if not self.isChair(nick): return