Skip to content

Commit 44f3dfa

Browse files
undo endpoint_handler change.
1 parent d54a68a commit 44f3dfa

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

tabpy/tabpy_server/handlers/endpoint_handler.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -115,13 +115,11 @@ def delete(self, name):
115115

116116
# delete files
117117
if endpoint_info["type"] != "alias":
118-
query_path = get_query_object_path(
118+
delete_path = get_query_object_path(
119119
self.settings["state_file_path"], name, None
120120
)
121-
staging_path = query_path.replace("/query_objects/", "/staging/endpoints/")
122121
try:
123-
yield self._delete_po_future(query_path)
124-
yield self._delete_po_future(staging_path)
122+
yield self._delete_po_future(delete_path)
125123
except Exception as e:
126124
self.error_out(400, f"Error while deleting: {e}")
127125
self.finish()

0 commit comments

Comments
 (0)