close archive on job completion (#417)

This commit is contained in:
Mike Fährmann
2019-09-10 22:26:40 +02:00
parent 5ac9732adc
commit 776e9e073f
2 changed files with 3 additions and 0 deletions

View File

@@ -733,6 +733,7 @@ class DownloadArchive():
def __init__(self, path, extractor):
con = sqlite3.connect(path)
con.isolation_level = None
self.close = con.close
self.cursor = con.cursor()
self.cursor.execute("CREATE TABLE IF NOT EXISTS archive "
"(entry PRIMARY KEY) WITHOUT ROWID")