add getSync, fix named argument
This commit is contained in:
@@ -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':
|
||||||
|
Reference in New Issue
Block a user