mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-08-19 21:03:21 -07:00
Only use form data if uploading a database file
This commit is contained in:
parent
12effd643f
commit
8c7476a670
3 changed files with 39 additions and 24 deletions
|
@ -59,7 +59,7 @@ def validate_database(database=None):
|
|||
return 'success'
|
||||
|
||||
|
||||
def import_tautulli_db(database=None, method=None, backup=True):
|
||||
def import_tautulli_db(database=None, method=None, backup=False):
|
||||
db_validate = validate_database(database=database)
|
||||
if not db_validate == 'success':
|
||||
logger.error("Tautulli Database :: Failed to import Tautulli database: %s", db_validate)
|
||||
|
|
|
@ -3742,7 +3742,7 @@ class WebInterface(object):
|
|||
@cherrypy.tools.json_out()
|
||||
@requireAuth(member_of("admin"))
|
||||
@addtoapi()
|
||||
def import_database(self, app=None, database_file=None, database_path=None, method=None, backup=True,
|
||||
def import_database(self, app=None, database_file=None, database_path=None, method=None, backup=False,
|
||||
table_name=None, import_ignore_interval=0, **kwargs):
|
||||
""" Import a Tautulli, PlexWatch, or Plexivity database into Tautulli.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue