From f2d660940312ff6154a2767addb3df14149578e9 Mon Sep 17 00:00:00 2001 From: sky1006 Date: Thu, 14 Feb 2019 11:14:55 +0800 Subject: [PATCH] Update aliyun_rds.py update SQLID->SQLHASH --- sql/aliyun_rds.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sql/aliyun_rds.py b/sql/aliyun_rds.py index 21de9f7838..23de19cf81 100644 --- a/sql/aliyun_rds.py +++ b/sql/aliyun_rds.py @@ -35,7 +35,7 @@ def slowquery_review(request): # 解决table数据丢失精度、格式化时间 sql_slow_log = json.loads(slowsql)['Items']['SQLSlowLog'] for SlowLog in sql_slow_log: - SlowLog['SQLId'] = str(SlowLog['SQLId']) + SlowLog['SQLHASH'] = str(SlowLog['SQLHASH']) SlowLog['CreateTime'] = Aliyun.aliyun_time_format(SlowLog['CreateTime']) result = {"total": json.loads(slowsql)['TotalRecordCount'], "rows": sql_slow_log,