fnp
/
redakcja.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a696802
)
fix
author
Radek Czajka
<rczajka@rczajka.pl>
Mon, 4 Apr 2022 10:20:40 +0000
(12:20 +0200)
committer
Radek Czajka
<rczajka@rczajka.pl>
Mon, 4 Apr 2022 10:20:40 +0000
(12:20 +0200)
src/depot/legimi.py
patch
|
blob
|
history
diff --git
a/src/depot/legimi.py
b/src/depot/legimi.py
index
a41902a
..
0a09f0b
100644
(file)
--- a/
src/depot/legimi.py
+++ b/
src/depot/legimi.py
@@
-185,7
+185,7
@@
class Legimi:
if wlbook.meta.audience:
description += '<p><em>{}</em> to lektura szkolna.'.format(wlbook.meta.title)
- if wlbook.tree.find('//pe'):
+ if wlbook.tree.find('//pe')
is not None
:
description += '<br>Ebook <em>{title}</em> 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'