Skip to content

Commit

Permalink
update in response to mr comment
Browse files Browse the repository at this point in the history
  • Loading branch information
jmoens committed Oct 31, 2024
1 parent 7049360 commit 8c2f1ab
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tabpy/tabpy_server/management/state.py
Original file line number Diff line number Diff line change
Expand Up @@ -342,10 +342,8 @@ def update_endpoint(
dependencies, endpoint_info.get("dependencies", []))
# Adding is_public means that some existing functions do not have is_public set.
# We need to check for this when updating and set to False by default
current_is_public = False
if hasattr(endpoint_info, "is_public"):
current_is_public = endpoint_info["is_public"]
is_public = self._check_and_set_is_public(is_public, current_is_public)
is_public = self._check_and_set_is_public(
is_public, getattr(endpoint_info, "is_public", False))

self._check_target(target)
if target and target not in endpoints:
Expand Down

0 comments on commit 8c2f1ab

Please sign in to comment.