--- a/viewer.py Mon Jul 04 18:27:36 2016 +0800
+++ b/viewer.py Mon Jul 18 18:38:43 2016 +0800
return getinfo('first({}:0, {})'.format(rev, revcount))
def getlimits(self, marks, changesets=None):
- query = 'SELECT MIN(time), MAX(time) FROM results WHERE mark = ? AND cache = ?'
+ 'SELECT MIN(time), MAX(time) FROM results'
+ ' WHERE mark = ? AND cache = ?')
query += ' AND node IN (' + ','.join('?' * len(changesets)) + ')'
super(Viewer, self).__init__(handlers, **settings)
def listen(self, port, address='', **kwargs):
- logging.info('{} is serving on {}:{}'.format(self.__class__.__name__, address, port))
+ name = self.__class__.__name__
+ logging.info('{} is serving on {}:{}'.format(name, address, port))
super(Viewer, self).listen(port, address, **kwargs)