1
0
mirror of https://github.com/moparisthebest/SickRage synced 2024-12-12 11:02:21 -05:00

Fix for failed download handling and sql issues

This commit is contained in:
echel0n 2014-06-17 09:02:23 -07:00
parent 98ff924b1c
commit 2eec706197

View File

@ -78,7 +78,8 @@ def logFailed(release):
provider = sql_results[0]["provider"]
if not hasFailed(release, size, provider):
myDB.action("INSERT INTO failed (release, size, provider) VALUES (?, ?, ?)", [release, size, provider])
with db.DBConnection('failed.db') as myDB:
myDB.action("INSERT INTO failed (release, size, provider) VALUES (?, ?, ?)", [release, size, provider])
deleteLoggedSnatch(release, size, provider)