From 2e4c8a8e0dec5008813125d0b2eb1a4b10e83b90 Mon Sep 17 00:00:00 2001 From: yanta Date: Mon, 21 Aug 2023 09:55:41 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dmongo=E6=89=A7=E8=A1=8Csq?= =?UTF-8?q?l=E8=AF=AD=E5=8F=A5=E8=B6=85=E8=BF=874000=E5=B7=A5=E5=8D=95?= =?UTF-8?q?=E5=A4=B1=E8=B4=A5=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sql/engines/mongo.py | 1 + 1 file changed, 1 insertion(+) diff --git a/sql/engines/mongo.py b/sql/engines/mongo.py index 764d084a5a..437ced58d5 100644 --- a/sql/engines/mongo.py +++ b/sql/engines/mongo.py @@ -360,6 +360,7 @@ def exec_cmd(self, sql, db_name=None, slave_ok=""): _re_msg.append(_line) msg = "\n".join(_re_msg) + msg = msg.replace("true\n","") except Exception as e: logger.warning(f"mongo语句执行报错,语句:{sql},{e}错误信息{traceback.format_exc()}") finally: From d66ae526d3eaf4b2b72ba75f7b8edbb134413032 Mon Sep 17 00:00:00 2001 From: yanta Date: Mon, 21 Aug 2023 18:02:59 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E5=A4=84=E7=90=86lint=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sql/engines/mongo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sql/engines/mongo.py b/sql/engines/mongo.py index 437ced58d5..b7b8816846 100644 --- a/sql/engines/mongo.py +++ b/sql/engines/mongo.py @@ -360,7 +360,7 @@ def exec_cmd(self, sql, db_name=None, slave_ok=""): _re_msg.append(_line) msg = "\n".join(_re_msg) - msg = msg.replace("true\n","") + msg = msg.replace("true\n", "") except Exception as e: logger.warning(f"mongo语句执行报错,语句:{sql},{e}错误信息{traceback.format_exc()}") finally: From 13d68800619c3a3107b15735904c2999efbbd001 Mon Sep 17 00:00:00 2001 From: yanta Date: Tue, 12 Sep 2023 14:36:47 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=94=B3=E8=AF=B7?= =?UTF-8?q?=E6=9D=83=E9=99=90=E6=97=B6=EF=BC=8Cmysql=E6=97=A0=E6=B3=95?= =?UTF-8?q?=E5=B1=95=E7=A4=BAtable=E9=80=89=E9=A1=B9=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sql/templates/queryapplylist.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sql/templates/queryapplylist.html b/sql/templates/queryapplylist.html index 979df8b22f..74bbea8250 100644 --- a/sql/templates/queryapplylist.html +++ b/sql/templates/queryapplylist.html @@ -48,7 +48,7 @@ data-live-search="true" required> // TODO 使用models中的choices 渲染 {% for name, engine in engines.items %} - + {% endfor %}