+# -*- coding: utf-8 -*-
+# This file is part of Wolnelektury, licensed under GNU Affero GPLv3 or later.
+# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
+#
import sys
from django.core.management.base import BaseCommand
)
def handle(self, *args, **opts):
from catalogue.models import Book
- import search
- idx = search.Index()
+ from search.index import Index
+ idx = Index()
if not opts['just_tags']:
if args: