From: Radek Czajka Date: Mon, 4 Apr 2022 10:20:40 +0000 (+0200) Subject: fix X-Git-Url: https://git.mdrn.pl/redakcja.git/commitdiff_plain/df3e7b60880c31eda0abdedd0eb6bd8b54a8e364?hp=a696802f47205416a28424d2bdab2b2bc8c4d920 fix --- diff --git a/src/depot/legimi.py b/src/depot/legimi.py index a41902a5..0a09f0b4 100644 --- a/src/depot/legimi.py +++ b/src/depot/legimi.py @@ -185,7 +185,7 @@ class Legimi: if wlbook.meta.audience: description += '

{} to lektura szkolna.'.format(wlbook.meta.title) - if wlbook.tree.find('//pe'): + if wlbook.tree.find('//pe') is not None: description += '
Ebook {title} zawiera przypisy opracowane specjalnie dla uczennic i uczniów {school}.'.format( title=wlbook.meta.title, school='szkoły podstawowej' if wlbook.meta.audience == 'SP' else 'liceum i technikum'