Add function to delete exported files

This commit is contained in:
JonnyWong16 2020-08-03 15:32:24 -07:00
parent deb49d7ff9
commit 8b8afacaea
No known key found for this signature in database
GPG key ID: B1F1F9807184697A
6 changed files with 116 additions and 9 deletions

View file

@ -216,6 +216,11 @@ def delete_recently_added():
return clear_table('recently_added')
def delete_exports():
logger.info("Tautulli Database :: Clearing exported items from database.")
return clear_table('exports')
def delete_rows_from_table(table, row_ids):
if row_ids and isinstance(row_ids, str):
row_ids = list(map(helpers.cast_to_int, row_ids.split(',')))