diff --git a/bin/jsonrpc-client b/bin/jsonrpc-client index ff40cb7..08557cb 100755 --- a/bin/jsonrpc-client +++ b/bin/jsonrpc-client @@ -24,10 +24,8 @@ along with this program. If not, see . from bjsonrpc import connect c = connect() -time1 = c.call.time() -# do something here ... -print "Time:", time1 -print "Delta:", c.call.delta(time1) + +print c.call.get_job_list() print c.call.get_job_info_by_id("3bf60380") diff --git a/linspector/backends/jsonrpc.py b/linspector/backends/jsonrpc.py index d6905ca..e04a39a 100644 --- a/linspector/backends/jsonrpc.py +++ b/linspector/backends/jsonrpc.py @@ -56,14 +56,9 @@ class ServerHandler(BaseHandler): interface = None config = None - def time(self): - return time.time() - - def delta(self, start): - return time.time() - start - def get_job_list(self): - pass + job_list = ServerHandler.interface.get_job_list() + return json.dumps(job_list, ensure_ascii=False) def get_job_info_by_id(self, job_hex): job = ServerHandler.interface.find_job_by_hex_string(job_hex)