forked from mirrors/bookwyrm
Fixes cover filesnames
This commit is contained in:
parent
1ffa21b67d
commit
dd4e323e18
1 changed files with 1 additions and 1 deletions
|
@ -84,7 +84,7 @@ class Connector(AbstractConnector):
|
||||||
if not response.ok:
|
if not response.ok:
|
||||||
response.raise_for_status()
|
response.raise_for_status()
|
||||||
|
|
||||||
image_name = str(uuid4()) + cover_url.split('.')[-1]
|
image_name = str(uuid4()) + '.' + cover_url.split('.')[-1]
|
||||||
image_content = ContentFile(response.content)
|
image_content = ContentFile(response.content)
|
||||||
return [image_name, image_content]
|
return [image_name, image_content]
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue