fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Content warnings.
[wolnelektury.git]
/
src
/
catalogue
/
fields.py
diff --git
a/src/catalogue/fields.py
b/src/catalogue/fields.py
index
52a6d1b
..
4d49d30
100644
(file)
--- a/
src/catalogue/fields.py
+++ b/
src/catalogue/fields.py
@@
-313,7
+313,7
@@
class BuildHtml(BuildEbook):
if url_elem is None:
gallery = ''
else:
- gallery = gallery_url(slug=url_elem.text.rsplit('/', 1)[1])
+ gallery = gallery_url(slug=url_elem.text.rs
trip('/').rs
plit('/', 1)[1])
return wldoc.as_html(options={'gallery': "'%s'" % gallery})