Skip to content

Commit d9a2140

Browse files
author
caofanCPU
committed
fix bug of SQL for string key symbol "'" -> "\'"
1 parent 8b2a56d commit d9a2140

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

ju_dan/main.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def handle_content(msg):
2121
# 内容最多1024个字符
2222
content = custom_str(content, 1024)
2323
time_stamp = msg['CreateTime']
24-
create_time = time.strftime("%Y--%m--%d %H:%M:%S", time.localtime(time_stamp))
24+
create_time = time.strftime("%Y-%m-%d %H:%M:%S", time.localtime(time_stamp))
2525
current_talk_group_id = msg['User']['UserName']
2626
# 内容最多64个字符
2727
current_talk_group_name = custom_str(msg['User']['NickName'], 64)
@@ -54,8 +54,6 @@ def custom_str(source, length):
5454

5555

5656
def build_logs():
57-
# 获取当前时间
58-
now_time = time.strftime("%Y_%m_%d_%H_%M_%S", time.localtime())
5957
# 设置log名称
6058
log_name = "wx.log"
6159
# 定义logger

0 commit comments

Comments
 (0)