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)