# This file is part of Wolnelektury, licensed under GNU Affero GPLv3 or later.
# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
#
# This file is part of Wolnelektury, licensed under GNU Affero GPLv3 or later.
# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
#
from traceback import print_exc
from celery.task import task
from celery.utils.log import get_task_logger
from django.conf import settings
from traceback import print_exc
from celery.task import task
from celery.utils.log import get_task_logger
from django.conf import settings
from catalogue.models import Book
try:
return Book.objects.get(id=book_id).search_index(book_info, **kwargs)
from catalogue.models import Book
try:
return Book.objects.get(id=book_id).search_index(book_info, **kwargs)
morefloats=settings.LIBRARIAN_PDF_MOREFLOATS,
ilustr_path=gallery_path(wldoc.book_info.url.slug),
**kwargs)
morefloats=settings.LIBRARIAN_PDF_MOREFLOATS,
ilustr_path=gallery_path(wldoc.book_info.url.slug),
**kwargs)