From: Radek Czajka Date: Thu, 6 Oct 2022 09:30:47 +0000 (+0200) Subject: fix X-Git-Url: https://git.mdrn.pl/wolnelektury.git/commitdiff_plain/21de3884f82ce6c9b2d538d8d63c41cf68c9bae7?ds=sidebyside fix --- diff --git a/src/catalogue/fields.py b/src/catalogue/fields.py index 1efc7697e..56de8c6da 100644 --- a/src/catalogue/fields.py +++ b/src/catalogue/fields.py @@ -358,6 +358,10 @@ class CoverField(EbookField): ext = 'jpg' directory = 'cover' + @staticmethod + def transform(wldoc): + return wldoc.as_cover() + def set_file_permissions(self, fieldfile): pass