fnp
/
redakcja.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
8ac6e02
)
fix conversion wl2 to wl1
author
Jan Szejko
<jan.szejko@gmail.com>
Tue, 21 Jun 2016 08:30:17 +0000
(10:30 +0200)
committer
Jan Szejko
<jan.szejko@gmail.com>
Tue, 21 Jun 2016 08:30:17 +0000
(10:30 +0200)
apps/catalogue/models/book.py
patch
|
blob
|
history
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')