This is an automated email from the ASF dual-hosted git repository.

critas pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/iotdb-mcp-server.git


The following commit(s) were added to refs/heads/main by this push:
     new 2860744  fix: convert timestamp to string before appending (#4)
2860744 is described below

commit 2860744ec829a5bffa559555cfdd263d7e062e6a
Author: JimmyyyChen <[email protected]>
AuthorDate: Tue May 6 17:09:02 2025 +0800

    fix: convert timestamp to string before appending (#4)
---
 src/iotdb_mcp_server/server.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/iotdb_mcp_server/server.py b/src/iotdb_mcp_server/server.py
index 7e4b9ff..5c627b5 100644
--- a/src/iotdb_mcp_server/server.py
+++ b/src/iotdb_mcp_server/server.py
@@ -187,7 +187,7 @@ if config.sql_dialect == "tree":
                 timestamp = record.get_timestamp()
                 # formatted_time = 
datetime.datetime.fromtimestamp(timestamp/1000).strftime('%Y-%m-%dT%H:%M:%S.%f')[:-3]
                 row = record.get_fields()
-                result.append(timestamp + "," + ",".join(map(str, row)))
+                result.append(str(timestamp) + "," + ",".join(map(str, row)))
             else:
                 row = record.get_fields()
                 result.append(",".join(map(str, row)))

Reply via email to