From c3e9a68ea36868c8102619fb296d8c62c87a431e Mon Sep 17 00:00:00 2001 From: Bohdan Bobrowski Date: Tue, 17 Dec 2024 21:02:19 +0100 Subject: [PATCH] refactor --- blog2epub/models/configuration.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/blog2epub/models/configuration.py b/blog2epub/models/configuration.py index d90394c..648c757 100644 --- a/blog2epub/models/configuration.py +++ b/blog2epub/models/configuration.py @@ -1,4 +1,5 @@ import random +from dataclasses import field from pathlib import Path from pydantic import BaseModel @@ -38,12 +39,13 @@ class ConfigurationModel(BaseModel): use_cache: bool = False destination_folder: str = str(Path.home()) include_images: bool = True - images_size: list[int] = [600, 800] + images_size: tuple[int] = (600, 800) images_quality: int = 40 + images_bw: bool = True url: str = "" limit: str = "5" skip: str = "" - history: list[str] = [] + history: list[str] = field(default_factory=list) email: str = "" version: str = ""