mirror of
https://github.com/SickGear/SickGear.git
synced 2024-12-01 00:43:37 +00:00
Fix for failed download handling and sql issues
This commit is contained in:
parent
98ff924b1c
commit
2eec706197
1 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue