Skip to content

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

+1-2
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)