From 44af0d4c59eed1c3715e9044e75c159cfddf54cc Mon Sep 17 00:00:00 2001 From: Andrew Godwin Date: Wed, 16 Nov 2022 17:23:46 -0700 Subject: Add start of a settings (config) system --- core/config.py | 20 -------------------- 1 file changed, 20 deletions(-) delete mode 100644 core/config.py (limited to 'core/config.py') diff --git a/core/config.py b/core/config.py deleted file mode 100644 index b9f6878..0000000 --- a/core/config.py +++ /dev/null @@ -1,20 +0,0 @@ -import pydantic - - -class Config(pydantic.BaseModel): - - # Basic configuration options - site_name: str = "takahē" - identity_max_age: int = 24 * 60 * 60 - - # Cached ORM object storage - __singleton__ = None - - class Config: - env_prefix = "takahe_" - - @classmethod - def load(cls) -> "Config": - if cls.__singleton__ is None: - cls.__singleton__ = cls() - return cls.__singleton__ -- cgit v1.2.3