diff options
Diffstat (limited to 'module/DatabaseBackend.py')
-rw-r--r-- | module/DatabaseBackend.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/module/DatabaseBackend.py b/module/DatabaseBackend.py index d74950855..1c40f270b 100644 --- a/module/DatabaseBackend.py +++ b/module/DatabaseBackend.py @@ -25,9 +25,10 @@ from os.path import exists from shutil import move from Queue import Queue - from traceback import print_exc +from utils import chmod + try: from pysqlite2 import dbapi2 as sqlite3 except: @@ -112,6 +113,8 @@ class DatabaseBackend(Thread): convert = self._checkVersion() #returns None or current version self.conn = sqlite3.connect("files.db") + chmod("files.db", 0600) + self.c = self.conn.cursor() #compatibility if convert is not None: |