Skip to content

Commit 30c2ed2

Browse files
author
junjie.miao
committed
fix: markdown output format float value is formatted
1 parent 697946b commit 30c2ed2

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

db_query/tools/sql_query.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ def _invoke(
1717
invoke tools
1818
"""
1919
db_type = tool_parameters.get("db_type", "")
20-
print(db_type)
2120
if not db_type:
2221
raise ValueError("Please select the database type")
2322
db_host = tool_parameters.get("db_host", "")
@@ -67,5 +66,5 @@ def _invoke(
6766
if output_format == "json":
6867
yield self.create_json_message({"records": records})
6968
else:
70-
text = tabulate.tabulate(records, headers="keys", tablefmt="github")
69+
text = tabulate.tabulate(records, headers="keys", tablefmt="github", floatfmt="")
7170
yield self.create_text_message(text)

db_query_pre_auth/tools/sql_query.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,5 +66,5 @@ def _invoke(
6666
if output_format == "json":
6767
yield self.create_json_message({"records": records})
6868
else:
69-
text = tabulate.tabulate(records, headers="keys", tablefmt="github")
69+
text = tabulate.tabulate(records, headers="keys", tablefmt="github", floatfmt="")
7070
yield self.create_text_message(text)

0 commit comments

Comments
 (0)