Update stats.py

disable spurious pylint warning
This commit is contained in:
Damien Elmes 2019-03-11 15:12:21 +10:00 committed by GitHub
parent 08e51f220f
commit 99693fb277
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -291,6 +291,7 @@ group by day order by day""" % (self._limit(), lim),
xaxis=dict(tickDecimals=0, max=0.5),
yaxes=[dict(min=0), dict(position="right", min=0)])
if days is not None:
# pylint: disable=invalid-unary-operand-type
conf['xaxis']['min'] = -days+0.5
def plot(id, data, ylabel, ylabel2):
return self._graph(
@ -322,6 +323,7 @@ group by day order by day""" % (self._limit(), lim),
xaxis=dict(tickDecimals=0, max=0.5),
yaxes=[dict(min=0), dict(position="right", min=0)])
if days is not None:
# pylint: disable=invalid-unary-operand-type
conf['xaxis']['min'] = -days+0.5
def plot(id, data, ylabel, ylabel2):
return self._graph(