This commit is contained in:
Louis Vézina 2019-10-28 06:48:20 -04:00
parent c5aeb187d1
commit 9164c73f39
1 changed files with 2 additions and 2 deletions

View File

@ -136,8 +136,8 @@ def sync_episodes():
for updated_episode in episodes_to_update_list: for updated_episode in episodes_to_update_list:
query = dict_converter.convert(updated_episode) query = dict_converter.convert(updated_episode)
database.execute('''UPDATE table_shows SET ''' + query.keys_update + ''' WHERE sonarrSeriesId = ?''', database.execute('''UPDATE table_episodes SET ''' + query.keys_update + ''' WHERE sonarrEpisodeId = ?''',
query.values + (updated_episode['sonarrSeriesId'],)) query.values + (updated_episode['sonarrEpisodeId'],))
altered_episodes.append([updated_episode['sonarrEpisodeId'], altered_episodes.append([updated_episode['sonarrEpisodeId'],
updated_episode['path'], updated_episode['path'],
updated_episode['sonarrSeriesId']]) updated_episode['sonarrSeriesId']])