X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/60b06883b6d5a336ef47c01103ec1ce25aafae69..bcd038fcea6b45b29ff3831b31f758dcec6b4157:/apps/lesmianator/models.py diff --git a/apps/lesmianator/models.py b/apps/lesmianator/models.py index 5103ebbf1..1d057c2da 100644 --- a/apps/lesmianator/models.py +++ b/apps/lesmianator/models.py @@ -18,7 +18,6 @@ from django.contrib.contenttypes.models import ContentType from django.contrib.contenttypes import generic from django.conf import settings -from librarian import text from catalogue.fields import JSONField from catalogue.models import Book, Tag @@ -124,6 +123,8 @@ class Continuations(models.Model): @classmethod def for_book(cls, book, length=3): + from librarian import text + # count from this book only output = StringIO() f = open(book.xml_file.path)