Skip to content

Commit

Permalink
rename env
Browse files Browse the repository at this point in the history
  • Loading branch information
pbrochar committed Mar 9, 2024
1 parent e6ce7c2 commit eefa181
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .env.template
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
BLITZ_PORT=8100
DEFAULT_FILE="blitz.json"
BLITZ_DB_TYPE="MEMORY"
BLITZ_OPENAI_API_KEY=""
BLITZ_OPENAI_API_KEY=""
BLITZ_READ_ONLY=False
2 changes: 1 addition & 1 deletion blitz/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion blitz/ui/blitz_ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit eefa181

Please sign in to comment.