pep8: fix remaining line length issues and update travis to include lib/*.py
This commit is contained in:
parent
8d4856db56
commit
eb26ea9a5f
6 changed files with 59 additions and 35 deletions
|
@ -32,11 +32,13 @@ class NodeRRD(RRD):
|
|||
|
||||
@property
|
||||
def imagename(self):
|
||||
return "{basename}.png".format(basename=os.path.basename(self.filename).rsplit('.', 2)[0])
|
||||
return "{basename}.png".format(
|
||||
basename=os.path.basename(self.filename).rsplit('.', 2)[0])
|
||||
|
||||
# TODO: fix this, python does not support function overloading
|
||||
def update(self):
|
||||
super().update({'upstate': int(self.node['flags']['online']), 'clients': self.node['statistics']['clients']})
|
||||
super().update({'upstate': int(self.node['flags']['online']),
|
||||
'clients': self.node['statistics']['clients']})
|
||||
|
||||
def graph(self, directory, timeframe):
|
||||
"""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue