Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
galaplexus committed Mar 8, 2024
1 parent 2e6888f commit 215b788
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/streamlit_hub/access/nginx_access.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ def set_serving_port(self, port: int):
self.config.write(f)

def get_enabled_flag(self) -> bool:
return bool(self.config["DEFAULT"][self.enabled_key]) if self.enabled_key in self.config["DEFAULT"] else False
return self.config["DEFAULT"][self.enabled_key].lower() == "true" if self.enabled_key in self.config["DEFAULT"] else False

def set_enabled_flag(self, enabled: bool):
if self.get_enabled_flag() == enabled:
Expand Down

0 comments on commit 215b788

Please sign in to comment.