Add notification log table

This commit is contained in:
JonnyWong16 2016-02-21 15:45:28 -08:00
parent c93b65b299
commit de9f60aa7f
4 changed files with 228 additions and 15 deletions

View file

@ -1082,6 +1082,15 @@ class WebInterface(object):
cherrypy.response.headers['Content-type'] = 'application/json'
return json.dumps(log_lines)
@cherrypy.expose
@addtoapi()
def get_notification_log(self, **kwargs):
data_factory = datafactory.DataFactory()
notifications = data_factory.get_notification_log(kwargs=kwargs)
cherrypy.response.headers['Content-type'] = 'application/json'
return json.dumps(notifications)
@cherrypy.expose
def clearLogs(self):
plexpy.LOG_LIST = []