Setup property index with database module

This commit is contained in:
Ruud
2014-06-25 16:13:35 +02:00
parent 69819460f3
commit a566b4f428
+1 -9
View File
@@ -71,15 +71,7 @@ class Settings(object):
self.connectEvents()
def databaseSetup(self):
from couchpotato import get_db
db = get_db()
try:
db.add_index(PropertyIndex(db.path, 'property'))
except:
self.log.debug('Index for properties already exists')
db.edit_index(PropertyIndex(db.path, 'property'))
fireEvent('database.setup_index', 'property', PropertyIndex)
def parser(self):
return self.p