From 64d4905efc997806211bfc7651030d4f0375eccc Mon Sep 17 00:00:00 2001 From: pengtao Date: Wed, 14 Aug 2019 15:41:35 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=90=AF=E5=8A=A8=E5=91=BD?= =?UTF-8?q?=E4=BB=A4=20&=20=E5=90=AF=E5=8A=A8=E7=AB=AF=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- data_collect_interface.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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)