This commit is contained in:
morpheus65535 2018-10-02 14:38:37 -04:00
parent fc34550606
commit 8c57521fe5
1 changed files with 2 additions and 1 deletions

View File

@ -106,7 +106,8 @@ def update_movies():
db = sqlite3.connect(os.path.join(config_dir, 'db/bazarr.db'), timeout=30)
c = db.cursor()
c.executemany('DELETE FROM table_movies WHERE tmdbId = ?', removed_movies)
for removed_movie in removed_movies:
c.execute('DELETE FROM table_movies WHERE tmdbId = ?', (removed_movie,))
db.commit()
db.close()