diff options
| author | handingkang <[email protected]> | 2024-04-18 17:19:39 +0800 |
|---|---|---|
| committer | handingkang <[email protected]> | 2024-04-18 17:19:39 +0800 |
| commit | 00002e3d2ae25db396e33899c6baa9e6c77ff865 (patch) | |
| tree | b25f4a219d5b0cbe99449f837e5e550044d53925 /server | |
| parent | b862fe9d30bf179cefaddaf25f8ccfc8b50b36d2 (diff) | |
测试代码删除
Diffstat (limited to 'server')
| -rw-r--r-- | server/apps/agentcomm.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/server/apps/agentcomm.py b/server/apps/agentcomm.py index d8611a9..a3876f7 100644 --- a/server/apps/agentcomm.py +++ b/server/apps/agentcomm.py @@ -92,8 +92,10 @@ def register_agent(): } # 对字符串值进行处理 param = string_to_mysql(param) + # 数据库表名 param["tab"] = MYSQL_TAB_AGENT - print(param) + + # 插入记录 err = insert_agent(param) if not err: return {"id": id} @@ -217,7 +219,6 @@ def insert_agent(param: dict): %(status)s, %(mem)s, %(idle)s);""" % param - print(sql) da.cursor.execute(sql) da.conn.commit() return None |
