From 50fab5c84aeb6808066eee5ee0964a244abe1940 Mon Sep 17 00:00:00 2001 From: Kurbanov Bulat Date: Sun, 5 Dec 2021 13:47:50 +0300 Subject: [PATCH] Change fb2+zip to fb2zip --- fastapi_book_server/app/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fastapi_book_server/app/models.py b/fastapi_book_server/app/models.py index f052fac..b87c5c0 100644 --- a/fastapi_book_server/app/models.py +++ b/fastapi_book_server/app/models.py @@ -143,7 +143,7 @@ class Book(ormar.Model): @ormar.property_field def available_types(self) -> list[str]: if self.file_type == 'fb2' and self.source.name == 'flibusta': - return ['fb2', 'fb2+zip', 'epub', 'mobi'] + return ['fb2', 'fb2zip', 'epub', 'mobi'] return [self.file_type]