Fix available_types

This commit is contained in:
2021-11-21 21:26:30 +03:00
parent dabab0ccdc
commit 1124181c1d

View File

@@ -143,7 +143,7 @@ class Book(ormar.Model):
@ormar.property_field @ormar.property_field
def available_types(self) -> list[str]: def available_types(self) -> list[str]:
if self.file_type == 'fb2' and self.source.name == 'flibusta': if self.file_type == 'fb2' and self.source.name == 'flibusta':
return ['fb2', 'epub', 'mobi'] return ['fb2', 'fb2+zip', 'epub', 'mobi']
return [self.file_type] return [self.file_type]