From df3e7b60880c31eda0abdedd0eb6bd8b54a8e364 Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Mon, 4 Apr 2022 12:20:40 +0200 Subject: [PATCH] fix --- src/depot/legimi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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' -- 2.20.1