diff --git a/sickbeard/showUpdater.py b/sickbeard/showUpdater.py index f8661ecd24ccf53d69e145e0d67c7b1b26e78acd..b1bac12f516d822cbfd1d4ee483adc8a3fbf1c9d 100644 --- a/sickbeard/showUpdater.py +++ b/sickbeard/showUpdater.py @@ -55,7 +55,8 @@ class ShowUpdater: if result: last_update = int(result[0]['time']) else: - my_db.action("INSERT INTO lastUpdate (provider,`time`) VALUES (?, ?)", ['theTVDB', update_timestamp - 86400]) + last_update = update_timestamp - 86400 + my_db.action("INSERT INTO lastUpdate (provider,`time`) VALUES (?, ?)", ['theTVDB', last_update]) # refresh network timezones network_timezones.update_network_dict()