From dd4e323e1893543a216e466c061b01f5c448601d Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Sat, 7 Nov 2020 10:59:08 -0800 Subject: [PATCH] Fixes cover filesnames --- bookwyrm/connectors/bookwyrm_connector.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bookwyrm/connectors/bookwyrm_connector.py b/bookwyrm/connectors/bookwyrm_connector.py index 6a1432f8..5ad795cd 100644 --- a/bookwyrm/connectors/bookwyrm_connector.py +++ b/bookwyrm/connectors/bookwyrm_connector.py @@ -84,7 +84,7 @@ class Connector(AbstractConnector): if not response.ok: 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) return [image_name, image_content]