Merge lp:~lderan/ubuntu-bots/meeetingology-output into lp:~ubuntu-bots/ubuntu-bots/meetingology

Proposed by Thomas Molloy
Status: Merged
Merged at revision: 18
Proposed branch: lp:~lderan/ubuntu-bots/meeetingology-output
Merge into: lp:~ubuntu-bots/ubuntu-bots/meetingology
Diff against target: 52 lines (+5/-8)
3 files modified
items.py (+0/-4)
meeting.py (+3/-1)
writers.py (+2/-3)
To merge this branch: bzr merge lp:~lderan/ubuntu-bots/meeetingology-output
Reviewer Review Type Date Requested Status
Alan Bell Approve
Review via email: mp+205402@code.launchpad.net

Description of the change

Fix for the meetingbot

To post a comment you must log in.
Revision history for this message
Alan Bell (alanbell) wrote :

remove vote reversing

review: Approve
18. By Alan Bell

accepting merge for fixing voting

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'items.py'
--- items.py 2014-02-07 14:51:56 +0000
+++ items.py 2014-02-07 16:14:25 +0000
@@ -187,10 +187,6 @@
187 def __init__(self, nick, line, linenum, time_):187 def __init__(self, nick, line, linenum, time_):
188 self.nick = nick ; self.line = line ; self.linenum = linenum188 self.nick = nick ; self.line = line ; self.linenum = linenum
189 self.time = time.strftime("%H:%M", time_)189 self.time = time.strftime("%H:%M", time_)
190 def __init__(self, nick, line, linenum):
191 time_ = time.localtime()
192 self.nick = nick ; self.line = line ; self.linenum = linenum
193 self.time = time.strftime("%H:%M", time_)
194 def _htmlrepl(self, M):190 def _htmlrepl(self, M):
195 repl = self.get_replacements(M, escapewith=writers.html)191 repl = self.get_replacements(M, escapewith=writers.html)
196 repl['link'] = self.logURL(M)192 repl['link'] = self.logURL(M)
197193
=== modified file 'meeting.py'
--- meeting.py 2013-11-19 23:47:26 +0000
+++ meeting.py 2014-02-07 16:14:25 +0000
@@ -299,7 +299,9 @@
299 if not self.isChair(nick): return299 if not self.isChair(nick): return
300 #close any open votes300 #close any open votes
301 if not self.activeVote=="":301 if not self.activeVote=="":
302 self.do_endvote(nick, line, **kwargs)302 endVoteKwargs = {"linenum": kwargs.get('linenum',"0"),
303 "time_": time.localtime()}
304 self.do_endvote(nick, line, **endVoteKwargs)
303 if self.oldtopic:305 if self.oldtopic:
304 self.topic(self.oldtopic)306 self.topic(self.oldtopic)
305 self.endtime = time_307 self.endtime = time_
306308
=== modified file 'writers.py'
--- writers.py 2014-02-07 15:24:05 +0000
+++ writers.py 2014-02-07 16:14:25 +0000
@@ -1216,7 +1216,7 @@
1216 Votes.append(self.heading('Vote results'))1216 Votes.append(self.heading('Vote results'))
1217 # reversed to show the oldest first1217 # reversed to show the oldest first
1218 if len(M.votes) > 0:1218 if len(M.votes) > 0:
1219 for m in reversed(M.votes):1219 for m in M.votes:
1220 # differentiate denied votes somehow, strikethrough perhaps?1220 # differentiate denied votes somehow, strikethrough perhaps?
1221 Votes.append(" * [[%(fullLogsFullURL)s#"+str(M.votes[m][3])+" "+m+"]]")1221 Votes.append(" * [[%(fullLogsFullURL)s#"+str(M.votes[m][3])+" "+m+"]]")
1222 motion = "Deadlock"1222 motion = "Deadlock"
@@ -1224,8 +1224,7 @@
1224 motion = "Motion carried"1224 motion = "Motion carried"
1225 elif(M.votes[m][0] < M.votes[m][2]):1225 elif(M.votes[m][0] < M.votes[m][2]):
1226 motion = "Motion denied"1226 motion = "Motion denied"
1227 1227 Votes.insert(0," * " + motion + " (For/Against/Abstained "+str(M.votes[m][0])+"/"+str(M.votes[m][2])+"/"+str(M.votes[m][1]) + ")")
1228 Votes.append(" * " + motion + " (For/Against/Abstained "+str(M.votes[m][0])+"/"+str(M.votes[m][2])+"/"+str(M.votes[m][1]) + ")")
1229 if len(M.publicVoters[m]) > 0:1228 if len(M.publicVoters[m]) > 0:
1230 publicVoters = ', '.join(set(M.publicVoters[m]))1229 publicVoters = ', '.join(set(M.publicVoters[m]))
1231 Votes.append(" * Voters " + publicVoters)1230 Votes.append(" * Voters " + publicVoters)

Subscribers

People subscribed via source and target branches