diff --git a/data_collect_interface.py b/data_collect_interface.py index 8aacf1e..d710a3c 100644 --- a/data_collect_interface.py +++ b/data_collect_interface.py @@ -44,11 +44,13 @@ class DispatchHandler(tornado.web.RequestHandler): sql = f"""SELECT a.method_name, + a.method_display, b.fields, b.comment FROM (SELECT - method_name + method_name, + method_display FROM methods WHERE @@ -69,7 +71,7 @@ class DispatchHandler(tornado.web.RequestHandler): for line in data: temp = {} try: - temp['methods'], temp['fields'], temp['comment'] = line + temp['methods'], temp['method_display'],temp['fields'], temp['comment'] = line output.append(temp) except Exception: log.error(f"split {line} error, get data from methods!", exc_info=True)