From 44f3dfa89a2d8f2da6703b9a5f5f390219c71a71 Mon Sep 17 00:00:00 2001 From: Jake Ichikawa Date: Thu, 21 Nov 2024 10:22:51 -0800 Subject: [PATCH] undo endpoint_handler change. --- tabpy/tabpy_server/handlers/endpoint_handler.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tabpy/tabpy_server/handlers/endpoint_handler.py b/tabpy/tabpy_server/handlers/endpoint_handler.py index 64b964cf..d7f45f43 100644 --- a/tabpy/tabpy_server/handlers/endpoint_handler.py +++ b/tabpy/tabpy_server/handlers/endpoint_handler.py @@ -115,13 +115,11 @@ def delete(self, name): # delete files if endpoint_info["type"] != "alias": - query_path = get_query_object_path( + delete_path = get_query_object_path( self.settings["state_file_path"], name, None ) - staging_path = query_path.replace("/query_objects/", "/staging/endpoints/") try: - yield self._delete_po_future(query_path) - yield self._delete_po_future(staging_path) + yield self._delete_po_future(delete_path) except Exception as e: self.error_out(400, f"Error while deleting: {e}") self.finish()