diff --git a/.env.template b/.env.template index bc7905e..194f82d 100644 --- a/.env.template +++ b/.env.template @@ -1,4 +1,5 @@ BLITZ_PORT=8100 DEFAULT_FILE="blitz.json" BLITZ_DB_TYPE="MEMORY" -BLITZ_OPENAI_API_KEY="" \ No newline at end of file +BLITZ_OPENAI_API_KEY="" +BLITZ_READ_ONLY=False \ No newline at end of file diff --git a/blitz/settings.py b/blitz/settings.py index 1d9a5e5..a616344 100644 --- a/blitz/settings.py +++ b/blitz/settings.py @@ -21,7 +21,7 @@ class Config: DEFAULT_FILE: str = "blitz.json" BLITZ_DB_TYPE: DBTypes = DBTypes.SQLITE BLITZ_OPENAI_API_KEY: str = "" - READ_ONLY: bool = False + BLITZ_READ_ONLY: bool = False @lru_cache() diff --git a/blitz/ui/blitz_ui.py b/blitz/ui/blitz_ui.py index 1ff1593..d1560af 100644 --- a/blitz/ui/blitz_ui.py +++ b/blitz/ui/blitz_ui.py @@ -10,7 +10,7 @@ class BlitzUI: def __init__(self, settings: Settings = get_settings()) -> None: - self.read_only = settings.READ_ONLY + self.read_only = settings.BLITZ_READ_ONLY self.blitz_app: BlitzCore = BlitzCore() self.apps = self.blitz_app.apps self.preprompt = self._get_preprompt()