diff --git a/api/kiwi_vpn_api/config.py b/api/kiwi_vpn_api/config.py index 085fa44..e27cd8e 100644 --- a/api/kiwi_vpn_api/config.py +++ b/api/kiwi_vpn_api/config.py @@ -37,11 +37,19 @@ class Settings(BaseSettings): redoc_url: str | None = "/redoc" @classmethod - @property @functools.lru_cache - def _(cls) -> Settings: + def load(cls) -> Settings: return cls() + @classmethod + @property + def _(cls) -> Settings: + """ + Shorthand for load() + """ + + return cls.load() + @property def config_file(self) -> Path: return self.data_dir.joinpath(self.config_file_name)