From a566b4f4284904acc7592ed72f5ba8a25011fc27 Mon Sep 17 00:00:00 2001 From: Ruud Date: Wed, 25 Jun 2014 16:13:35 +0200 Subject: [PATCH] Setup property index with database module --- couchpotato/core/settings.py | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/couchpotato/core/settings.py b/couchpotato/core/settings.py index c6de952b..4315ec18 100644 --- a/couchpotato/core/settings.py +++ b/couchpotato/core/settings.py @@ -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