fnp
/
redakcja.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
0251adf
)
Cover quick import fix.
author
Radek Czajka
<rczajka@rczajka.pl>
Fri, 23 Sep 2022 13:41:53 +0000
(15:41 +0200)
committer
Radek Czajka
<rczajka@rczajka.pl>
Fri, 23 Sep 2022 13:41:53 +0000
(15:41 +0200)
src/cover/views.py
patch
|
blob
|
history
diff --git
a/src/cover/views.py
b/src/cover/views.py
index
638f1c0
..
25663a0
100644
(file)
--- a/
src/cover/views.py
+++ b/
src/cover/views.py
@@
-158,7
+158,7
@@
def quick_import(request, pk):
if url.startswith('%s://%s/' % (
request.scheme,
request.get_host())):
if url.startswith('%s://%s/' % (
request.scheme,
request.get_host())):
- cover_id = url.rsplit('/', 1)[-1]
+ cover_id = url.rs
trip('/').rs
plit('/', 1)[-1]
cover = Image.objects.get(pk=cover_id)
else:
data = get_import_data(url)
cover = Image.objects.get(pk=cover_id)
else:
data = get_import_data(url)