Skip to content

Commit

Permalink
responding to mr comments
Browse files Browse the repository at this point in the history
  • Loading branch information
jmoens committed Sep 20, 2024
1 parent e2761b3 commit 90119a1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tabpy/tabpy_server/handlers/endpoint_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def put(self, name):

version_after_update = int(endpoints[name]["version"])
if request_data.get('should_update_version'):
version_after_update = int(endpoints[name]["version"]) + 1
version_after_update += 1
self.logger.log(logging.INFO, f"Endpoint info: {request_data}")
err_msg = yield self._add_or_update_endpoint(
"update", name, version_after_update, request_data
Expand Down
2 changes: 1 addition & 1 deletion tabpy/tabpy_tools/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ def deploy(self, name, obj, description="", schema=None, override=False, is_publ
if version == 1:
self._service.add_endpoint(Endpoint(**obj))
else:
self._service.set_endpoint(Endpoint(**obj))
self._service.set_endpoint(Endpoint(**obj), should_update_version=True)

self._wait_for_endpoint_deployment(obj["name"], obj["version"])

Expand Down

0 comments on commit 90119a1

Please sign in to comment.