From f4a8af0313d6e289055a5fe67c5cd575eeef53bc Mon Sep 17 00:00:00 2001 From: Tom Jakubowski Date: Fri, 1 Mar 2024 20:10:47 -0800 Subject: [PATCH] Fix get_hosted_table_names in Python client It was returning None. It now returns a future which resolves to the list of hosted table names. --- python/perspective/perspective/client/base.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/python/perspective/perspective/client/base.py b/python/perspective/perspective/client/base.py index 94e4fe64ac..4a738a2bef 100644 --- a/python/perspective/perspective/client/base.py +++ b/python/perspective/perspective/client/base.py @@ -97,7 +97,9 @@ def send(self, msg): def get_hosted_table_names(self): msg = {"cmd": "get_hosted_table_names"} - return self.post(msg) + future = asyncio.Future() + self.post(msg, future=future) + return future def post(self, msg, future=None, keep_alive=False): """Given a message and an associated `Future` object, store the future