add getSync, fix named argument

This commit is contained in:
John 2015-09-29 23:27:19 +02:00
parent f7bffdc050
commit 9d925cce03

View file

@ -29,7 +29,7 @@ import xmltodict
cmd_list = ['getLogs', 'getVersion', 'checkGithub', 'shutdown', cmd_list = ['getLogs', 'getVersion', 'checkGithub', 'shutdown',
'getSettings', 'restart', 'update', 'getApikey', 'getHistory', 'getSettings', 'restart', 'update', 'getApikey', 'getHistory',
'getMetadata', 'getUserips', 'getPlayby'] 'getMetadata', 'getUserips', 'getPlayby, getSync']
class Api(object): class Api(object):
@ -456,7 +456,7 @@ class Api(object):
else: else:
self.msg = 'Failed to find users ips' self.msg = 'Failed to find users ips'
def _getPlayby(self, time_range=30, y_axis='plays', playtype='total_plays_per_month', **kwargs): def _getPlayby(self, time_range='30', y_axis='plays', playtype='total_plays_per_month', **kwargs):
graph = graphs.Graphs() graph = graphs.Graphs()
if playtype == 'total_plays_per_month': if playtype == 'total_plays_per_month':