Content-Length: 258805 | pFad | http://github.com/stacklok/codegate/commit/c37e1423164e3d14d506a6687cceb60a6103db4d

24 fix env var logic (#1331) · stacklok/codegate@c37e142 · GitHub
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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/stacklok/codegate/commit/c37e1423164e3d14d506a6687cceb60a6103db4d

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy