Commits

Jason R. Coombs committed 71352a4

Fixed bug in log search

Comments (0)

Files changed (1)

pmxbot/logging.py

 				channel=match['channel'],
 				_id={'$gt': match['_id']}
 				)).sort('_id', storage.pymongo.ASCENDING).limit(2)
-			next2 = map(to_line, prev2)
+			next2 = map(to_line, next2)
 			context = prev2 + [line] + next2
 			marker = self.make_anchor(line[:2])
 			matches.append((channel, date, marker, context))