Remove update section ids

This commit is contained in:
JonnyWong16 2017-12-19 20:36:24 -08:00
parent 3c22496ea2
commit a9e24bc0c5
2 changed files with 1 additions and 29 deletions

View file

@ -389,11 +389,7 @@ class WebInterface(object):
@cherrypy.expose
@requireAuth()
def libraries(self, **kwargs):
config = {
"update_section_ids": plexpy.CONFIG.UPDATE_SECTION_IDS
}
return serve_template(templatename="libraries.html", title="Libraries", config=config)
return serve_template(templatename="libraries.html", title="Libraries")
@cherrypy.expose
@cherrypy.tools.json_out()
@ -995,19 +991,6 @@ class WebInterface(object):
else:
return {'message': 'no data received'}
@cherrypy.expose
@requireAuth(member_of("admin"))
def update_section_ids(self, **kwargs):
logger.debug(u"Manual database section_id update called.")
result = libraries.update_section_ids()
if result:
return "Updated all section_id's in database."
else:
return "Unable to update section_id's in database. See logs for details."
@cherrypy.expose
@cherrypy.tools.json_out()
@requireAuth(member_of("admin"))