From: Jan Szejko Date: Wed, 28 Nov 2018 15:42:41 +0000 (+0100) Subject: remove blockquote + update librarian X-Git-Url: https://git.mdrn.pl/wolnelektury.git/commitdiff_plain/adbfb2fee1a01bf97a339ca80248b82713e59729?ds=inline;hp=-c remove blockquote + update librarian --- adbfb2fee1a01bf97a339ca80248b82713e59729 diff --git a/lib/librarian b/lib/librarian index 9d095f2d4..594534b26 160000 --- a/lib/librarian +++ b/lib/librarian @@ -1 +1 @@ -Subproject commit 9d095f2d49f51ddc5421a463a0dd6c6e0be2d057 +Subproject commit 594534b26b77c2f83a44f3e8da4a52b29e0b9d7c diff --git a/src/catalogue/models/book.py b/src/catalogue/models/book.py index b71926ec3..dbbee782b 100644 --- a/src/catalogue/models/book.py +++ b/src/catalogue/models/book.py @@ -754,7 +754,10 @@ class Book(models.Model): def fragment_data(self): fragment = self.choose_fragment() if fragment: - return {'title': fragment.book.pretty_title(), 'html': fragment.get_short_text()} + return { + 'title': fragment.book.pretty_title(), + 'html': re.sub(']*>', '', fragment.get_short_text()), + } else: return None