mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-15 09:42:57 -07:00
Fix circular helpers import
This commit is contained in:
parent
798c17706c
commit
422a89c26c
1 changed files with 3 additions and 3 deletions
|
@ -28,8 +28,8 @@ if plexpy.PYTHON2:
|
||||||
import helpers
|
import helpers
|
||||||
import logger
|
import logger
|
||||||
else:
|
else:
|
||||||
from plexpy import helpers
|
|
||||||
from plexpy import logger
|
from plexpy import logger
|
||||||
|
from plexpy.helpers import cast_to_int
|
||||||
|
|
||||||
|
|
||||||
FILENAME = "tautulli.db"
|
FILENAME = "tautulli.db"
|
||||||
|
@ -67,8 +67,8 @@ def delete_recently_added():
|
||||||
|
|
||||||
|
|
||||||
def delete_rows_from_table(table, row_ids):
|
def delete_rows_from_table(table, row_ids):
|
||||||
if row_ids and isinstance(row_ids, basestring):
|
if row_ids and isinstance(row_ids, str):
|
||||||
row_ids = map(helpers.cast_to_int, row_ids.split(','))
|
row_ids = map(cast_to_int, row_ids.split(','))
|
||||||
|
|
||||||
logger.info("Tautulli Database :: Deleting row ids %s from %s database table", row_ids, table)
|
logger.info("Tautulli Database :: Deleting row ids %s from %s database table", row_ids, table)
|
||||||
query = "DELETE FROM " + table + " WHERE id IN (%s) " % ','.join(['?'] * len(row_ids))
|
query = "DELETE FROM " + table + " WHERE id IN (%s) " % ','.join(['?'] * len(row_ids))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue