mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-16 02:02:58 -07:00
Fix database import API docs
This commit is contained in:
parent
f7ec476fc0
commit
3859412b2c
2 changed files with 7 additions and 7 deletions
4
API.md
4
API.md
|
@ -2563,7 +2563,7 @@ Required parameters:
|
||||||
app (str): "tautulli" or "plexwatch" or "plexivity"
|
app (str): "tautulli" or "plexwatch" or "plexivity"
|
||||||
database_file (file): The database file to import (multipart/form-data)
|
database_file (file): The database file to import (multipart/form-data)
|
||||||
or
|
or
|
||||||
database_path (str): The full path to the plexwatch database file
|
database_path (str): The full path to the database file to import
|
||||||
method (str): For Tautulli only, "merge" or "overwrite"
|
method (str): For Tautulli only, "merge" or "overwrite"
|
||||||
table_name (str): For PlexWatch or Plexivity only, "processed" or "grouped"
|
table_name (str): For PlexWatch or Plexivity only, "processed" or "grouped"
|
||||||
|
|
||||||
|
@ -2577,7 +2577,7 @@ Optional parameters:
|
||||||
Returns:
|
Returns:
|
||||||
json:
|
json:
|
||||||
{"result": "success",
|
{"result": "success",
|
||||||
"message": "Import has started. Check the logs to monitor any problems."
|
"message": "Database import has started. Check the logs to monitor any problems."
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -3750,7 +3750,7 @@ class WebInterface(object):
|
||||||
app (str): "tautulli" or "plexwatch" or "plexivity"
|
app (str): "tautulli" or "plexwatch" or "plexivity"
|
||||||
database_file (file): The database file to import (multipart/form-data)
|
database_file (file): The database file to import (multipart/form-data)
|
||||||
or
|
or
|
||||||
database_path (str): The full path to the plexwatch database file
|
database_path (str): The full path to the database file to import
|
||||||
method (str): For Tautulli only, "merge" or "overwrite"
|
method (str): For Tautulli only, "merge" or "overwrite"
|
||||||
table_name (str): For PlexWatch or Plexivity only, "processed" or "grouped"
|
table_name (str): For PlexWatch or Plexivity only, "processed" or "grouped"
|
||||||
|
|
||||||
|
@ -3764,7 +3764,7 @@ class WebInterface(object):
|
||||||
Returns:
|
Returns:
|
||||||
json:
|
json:
|
||||||
{"result": "success",
|
{"result": "success",
|
||||||
"message": "Import has started. Check the logs to monitor any problems."
|
"message": "Database import has started. Check the logs to monitor any problems."
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
"""
|
"""
|
||||||
|
@ -3793,7 +3793,7 @@ class WebInterface(object):
|
||||||
'method': method,
|
'method': method,
|
||||||
'backup': helpers.bool_true(backup)}).start()
|
'backup': helpers.bool_true(backup)}).start()
|
||||||
return {'result': 'success',
|
return {'result': 'success',
|
||||||
'message': 'Import has started. Check the logs to monitor any problems.'}
|
'message': 'Database import has started. Check the logs to monitor any problems.'}
|
||||||
else:
|
else:
|
||||||
if database_file:
|
if database_file:
|
||||||
helpers.delete_file(database_path)
|
helpers.delete_file(database_path)
|
||||||
|
@ -3808,7 +3808,7 @@ class WebInterface(object):
|
||||||
'table_name': table_name,
|
'table_name': table_name,
|
||||||
'import_ignore_interval': import_ignore_interval}).start()
|
'import_ignore_interval': import_ignore_interval}).start()
|
||||||
return {'result': 'success',
|
return {'result': 'success',
|
||||||
'message': 'Import has started. Check the logs to monitor any problems.'}
|
'message': 'Database import has started. Check the logs to monitor any problems.'}
|
||||||
else:
|
else:
|
||||||
if database_file:
|
if database_file:
|
||||||
helpers.delete_file(database_path)
|
helpers.delete_file(database_path)
|
||||||
|
@ -3823,7 +3823,7 @@ class WebInterface(object):
|
||||||
'table_name': table_name,
|
'table_name': table_name,
|
||||||
'import_ignore_interval': import_ignore_interval}).start()
|
'import_ignore_interval': import_ignore_interval}).start()
|
||||||
return {'result': 'success',
|
return {'result': 'success',
|
||||||
'message': 'Import has started. Check the logs to monitor any problems.'}
|
'message': 'Database import has started. Check the logs to monitor any problems.'}
|
||||||
else:
|
else:
|
||||||
if database_file:
|
if database_file:
|
||||||
helpers.delete_file(database_path)
|
helpers.delete_file(database_path)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue