X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/a696802f47205416a28424d2bdab2b2bc8c4d920..7a959df9b6d26bfc4688a0b0096a23e019eaf9ac:/src/depot/legimi.py?ds=sidebyside 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'