fnp
/
redakcja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fix conversion wl2 to wl1
[redakcja.git]
/
apps
/
catalogue
/
models
/
book.py
diff --git
a/apps/catalogue/models/book.py
b/apps/catalogue/models/book.py
index
f58fe10
..
b0862f0
100755
(executable)
--- a/
apps/catalogue/models/book.py
+++ b/
apps/catalogue/models/book.py
@@
-463,7
+463,7
@@
class Book(models.Model):
i1 = etree.parse(f2)
for sect in i1.findall('//section'):
- if sect[0].text == u'Przebieg zajęć':
+ if sect[0].text
and sect[0].text.strip()
== u'Przebieg zajęć':
# Prostujemy.
first = sect.find('section')
subs = first.findall('.//section')