Merge remote-tracking branch 'origin/development' into development

This commit is contained in:
Louis Vézina 2020-03-30 20:18:26 -04:00
commit 97e91131e7
1 changed files with 2 additions and 2 deletions

View File

@ -231,8 +231,8 @@ def update_movies():
for updated_movie in movies_to_update_list: for updated_movie in movies_to_update_list:
query = dict_converter.convert(updated_movie) query = dict_converter.convert(updated_movie)
database.execute('''UPDATE table_movies SET ''' + query.keys_update + ''' WHERE radarrId = ?''', database.execute('''UPDATE table_movies SET ''' + query.keys_update + ''' WHERE tmdbId = ?''',
query.values + (updated_movie['radarrId'],)) query.values + (updated_movie['tmdbId'],))
altered_movies.append([updated_movie['tmdbId'], altered_movies.append([updated_movie['tmdbId'],
updated_movie['path'], updated_movie['path'],
updated_movie['radarrId'], updated_movie['radarrId'],