Skip to content

Commit

Permalink
add blitz ui read only
Browse files Browse the repository at this point in the history
  • Loading branch information
pbrochar committed Mar 9, 2024
1 parent 5b8727b commit d11eb92
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions blitz/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ class Config:
DEFAULT_FILE: str = "blitz.json"
BLITZ_DB_TYPE: DBTypes = DBTypes.SQLITE
BLITZ_OPENAI_API_KEY: str = ""
READ_ONLY: bool = False


@lru_cache()
Expand Down
1 change: 1 addition & 0 deletions blitz/ui/blitz_ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

class BlitzUI:
def __init__(self, settings: Settings = get_settings()) -> None:
self.read_only = settings.READ_ONLY
self.blitz_app: BlitzCore = BlitzCore()
self.apps = self.blitz_app.apps
self.preprompt = self._get_preprompt()
Expand Down

0 comments on commit d11eb92

Please sign in to comment.