Skip to content
This repository was archived by the owner on Jun 5, 2025. It is now read-only.

Commit c37e142

Browse files
authored
fix env var logic (#1331)
1 parent 5ce201f commit c37e142

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/codegate/updates/client.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@
99

1010
__update_client_singleton = None
1111

12-
is_dev_env = bool(os.environ.get("CODEGATE_DEV_ENV"))
13-
12+
is_dev_env = os.environ.get("CODEGATE_DEV_ENV", "false").lower() == "true"
1413

1514
# Enum representing whether the request is coming from the front-end or the back-end.
1615
class Origin(Enum):

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy