summaryrefslogtreecommitdiffstats
path: root/module/FileDatabase.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-10-03 14:49:16 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-10-03 14:49:16 +0200
commit3ef26c71cb3c23a876b95af77f6541c06227a937 (patch)
tree481462718d3c99410cad9dd4e8ffab7eed8e1f6f /module/FileDatabase.py
parentshare-online premium fix (revert to old design, coz new one is still buggy) (diff)
downloadpyload-3ef26c71cb3c23a876b95af77f6541c06227a937.tar.xz
acc fixes, closed #134, closed #141
Diffstat (limited to 'module/FileDatabase.py')
-rw-r--r--module/FileDatabase.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/module/FileDatabase.py b/module/FileDatabase.py
index 4f1c1a541..793a4a69e 100644
--- a/module/FileDatabase.py
+++ b/module/FileDatabase.py
@@ -20,7 +20,6 @@ from Queue import Queue
from os import remove
from os.path import exists
from shutil import move
-import sqlite3
from threading import Lock
from threading import RLock
from threading import Thread
@@ -33,6 +32,10 @@ from module.PullEvents import ReloadAllEvent
from module.PullEvents import RemoveEvent
from module.PullEvents import UpdateEvent
+try:
+ from pysqlite2 import dbapi2 as sqlite3
+except:
+ import sqlite3
DB_VERSION = 2