Minor fixes in picture publishing process.
[wolnelektury.git] / apps / search / management / commands / reindex.py
index 7032565..4941354 100755 (executable)
@@ -1,3 +1,7 @@
+# -*- 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
 
@@ -47,8 +51,8 @@ class Command(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: