mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-16 02:02:58 -07:00
Add flush temporary sessions button in settings
This commit is contained in:
parent
4797b1a3b7
commit
de3f813b46
3 changed files with 24 additions and 4 deletions
|
@ -334,9 +334,9 @@ class WebInterface(object):
|
|||
result = database.delete_sessions()
|
||||
|
||||
if result:
|
||||
return {'message': result}
|
||||
return {'result': 'success', 'message': 'Temporary sessions flushed.'}
|
||||
else:
|
||||
return {'message': 'no data received'}
|
||||
return {'result': 'error', 'message': 'Flush sessions failed.'}
|
||||
|
||||
|
||||
##### Libraries #####
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue