Skip to content

Commit

Permalink
fixed mistake for upating function with new public option
Browse files Browse the repository at this point in the history
  • Loading branch information
jmoens committed Sep 5, 2024
1 parent e69015b commit 0aa58bc
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions tabpy/tabpy_server/management/state.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,10 +188,12 @@ def _check_and_set_dependencies(self, dependencies, defaultValue):
return dependencies

def _check_and_set_is_public(self, isPublic, defaultValue):
if not isPublic:
try:
isPublic
except:
return defaultValue

return isPublic
else:
return isPublic

@state_lock
def add_endpoint(
Expand Down

0 comments on commit 0aa58bc

Please sign in to comment.