fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Python 3.11, relevant upgrades
[wolnelektury.git]
/
src
/
opds
/
views.py
diff --git
a/src/opds/views.py
b/src/opds/views.py
index
d2d7b6e
..
3862c5c
100644
(file)
--- a/
src/opds/views.py
+++ b/
src/opds/views.py
@@
-77,15
+77,15
@@
class OPDSFeed(Atom1Feed):
link_rel = "subsection"
link_type = "application/atom+xml"
link_rel = "subsection"
link_type = "application/atom+xml"
- _book_parent_img = lazy(lambda: full_url(os.path.join(settings.
STATIC_URL, "
img/book-parent.png")), str)()
+ _book_parent_img = lazy(lambda: full_url(os.path.join(settings.
PROJECT_DIR, "static/
img/book-parent.png")), str)()
try:
try:
- _book_parent_img_size = str(os.path.getsize(os.path.join(settings.
STATIC_ROOT, "
img/book-parent.png")))
+ _book_parent_img_size = str(os.path.getsize(os.path.join(settings.
PROJECT_DIR, "static/
img/book-parent.png")))
except OSError:
_book_parent_img_size = ''
except OSError:
_book_parent_img_size = ''
- _book_img = lazy(lambda: full_url(os.path.join(settings.
STATIC_URL, "
img/book.png")), str)()
+ _book_img = lazy(lambda: full_url(os.path.join(settings.
PROJECT_DIR, "static/
img/book.png")), str)()
try:
try:
- _book_img_size = str(os.path.getsize(os.path.join(settings.
STATIC_ROOT, "
img/book.png")))
+ _book_img_size = str(os.path.getsize(os.path.join(settings.
PROJECT_DIR, "static/
img/book.png")))
except OSError:
_book_img_size = ''
except OSError:
_book_img_size = ''