1
0
mirror of https://github.com/moparisthebest/SickRage synced 2024-12-13 11:32:20 -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,6 +78,7 @@ def logFailed(release):
provider = sql_results[0]["provider"] provider = sql_results[0]["provider"]
if not hasFailed(release, size, provider): if not hasFailed(release, size, provider):
with db.DBConnection('failed.db') as myDB:
myDB.action("INSERT INTO failed (release, size, provider) VALUES (?, ?, ?)", [release, size, provider]) myDB.action("INSERT INTO failed (release, size, provider) VALUES (?, ?, ?)", [release, size, provider])
deleteLoggedSnatch(release, size, provider) deleteLoggedSnatch(release, size, provider)