From 4f0a5f60ab67801ef64b62602a9f3ddbb2d161f5 Mon Sep 17 00:00:00 2001 From: EmmyHeart Date: Mon, 16 Oct 2023 13:22:18 +0000 Subject: [PATCH] Added config for reboot time support --- core/config.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/core/config.py b/core/config.py index 14f06f5..3a772f7 100644 --- a/core/config.py +++ b/core/config.py @@ -85,6 +85,18 @@ class TitleConfig: self.__config, "core", "title", "port", default=8080 ) + @property + def reboot_start_time(self) -> str: + return CoreConfig.get_config_field( + self.__config, "core", "title", "reboot_start_time", default="" + ) + + @property + def reboot_end_time(self) -> str: + return CoreConfig.get_config_field( + self.__config, "core", "title", "reboot_end_time", default="" + ) + class DatabaseConfig: def __init__(self, parent_config: "CoreConfig") -> None: