mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-11 07:46:07 -07:00
Remove update section ids
This commit is contained in:
parent
3c22496ea2
commit
a9e24bc0c5
2 changed files with 1 additions and 29 deletions
|
@ -8,17 +8,6 @@
|
||||||
|
|
||||||
<%def name="body()">
|
<%def name="body()">
|
||||||
<div class='container-fluid'>
|
<div class='container-fluid'>
|
||||||
% if config['update_section_ids'] == 1:
|
|
||||||
<div id="update_section_ids_message" style="text-align: center; margin-top: 20px;">
|
|
||||||
<i class="fa fa-exclamation-triangle"></i> Tautulli needs to update the Library IDs in your databse. Click the "<strong>Refresh libraries</strong>" button below to begin the update.
|
|
||||||
</div>
|
|
||||||
% elif config['update_section_ids'] == -1:
|
|
||||||
<div id="update_section_ids_message" style="text-align: center; margin-top: 20px;">
|
|
||||||
<i class="fa fa-refresh fa-spin"></i> Tautulli is updating library IDs in the database. This could take a few minutes to hours depending on the size of your database.
|
|
||||||
<br />
|
|
||||||
You may leave this page and come back later.
|
|
||||||
</div>
|
|
||||||
% endif
|
|
||||||
<div class='table-card-header'>
|
<div class='table-card-header'>
|
||||||
<div class="header-bar">
|
<div class="header-bar">
|
||||||
<span><i class="fa fa-book"></i> All Libraries</span>
|
<span><i class="fa fa-book"></i> All Libraries</span>
|
||||||
|
|
|
@ -389,11 +389,7 @@ class WebInterface(object):
|
||||||
@cherrypy.expose
|
@cherrypy.expose
|
||||||
@requireAuth()
|
@requireAuth()
|
||||||
def libraries(self, **kwargs):
|
def libraries(self, **kwargs):
|
||||||
config = {
|
return serve_template(templatename="libraries.html", title="Libraries")
|
||||||
"update_section_ids": plexpy.CONFIG.UPDATE_SECTION_IDS
|
|
||||||
}
|
|
||||||
|
|
||||||
return serve_template(templatename="libraries.html", title="Libraries", config=config)
|
|
||||||
|
|
||||||
@cherrypy.expose
|
@cherrypy.expose
|
||||||
@cherrypy.tools.json_out()
|
@cherrypy.tools.json_out()
|
||||||
|
@ -995,19 +991,6 @@ class WebInterface(object):
|
||||||
else:
|
else:
|
||||||
return {'message': 'no data received'}
|
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.expose
|
||||||
@cherrypy.tools.json_out()
|
@cherrypy.tools.json_out()
|
||||||
@requireAuth(member_of("admin"))
|
@requireAuth(member_of("admin"))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue