Setup property index with database module
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user