From 8db5f3387390c344250b824ce2b9289aed63bf83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Louis=20V=C3=A9zina?= <5130500+morpheus65535@users.noreply.github.com> Date: Mon, 4 Dec 2017 22:59:30 -0500 Subject: [PATCH] Replace tabs by spaces --- get_episodes.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/get_episodes.py b/get_episodes.py index c9b8e198e..6f869a3d9 100644 --- a/get_episodes.py +++ b/get_episodes.py @@ -42,10 +42,10 @@ def update_all_episodes(): try: c.execute('''INSERT INTO table_episodes(sonarrSeriesId, sonarrEpisodeId, title, path, season, episode) VALUES (?, ?, ?, ?, ?, ?)''', (episode['seriesId'], episode['id'], episode['title'], episode['episodeFile']['path'], episode['seasonNumber'], episode['episodeNumber'])) - db.commit() + db.commit() except sqlite3.Error: c.execute('''UPDATE table_episodes SET sonarrSeriesId = ?, sonarrEpisodeId = ?, title = ?, path = ?, season = ?, episode = ? WHERE sonarrEpisodeId = ?''', (episode['seriesId'], episode['id'], episode['title'], episode['episodeFile']['path'], episode['seasonNumber'], episode['episodeNumber'], episode['id'])) - db.commit() + db.commit() else: continue continue