Skip to content

Commit

Permalink
aliyun_rds_sdk返回对象调整
Browse files Browse the repository at this point in the history
  • Loading branch information
hhyo committed Feb 16, 2019
1 parent 55cc902 commit e1c15ec
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@

## 采取docker部署
* docker镜像,参考wiki
* inception镜像: https://hub.docker.com/r/hhyo/archer
* archer镜像: https://hub.docker.com/r/hhyo/inception
* inception镜像: https://hub.docker.com/r/hhyo/inception
* archer镜像: https://hub.docker.com/r/hhyo/archer
* docker镜像制作感谢@小圈圈 提供

## 手动安装步骤
Expand Down
4 changes: 2 additions & 2 deletions sql/aliyun_function.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def slowquery_review(request):
# 解决table数据丢失精度、格式化时间
SQLSlowLog = json.loads(slowsql)['Items']['SQLSlowLog']
for SlowLog in SQLSlowLog:
SlowLog['SQLId'] = str(SlowLog['SQLId'])
SlowLog['SQLId'] = str(SlowLog['SQLHASH'])
SlowLog['CreateTime'] = aliyun.aliyun_time_format(SlowLog['CreateTime'])

result = {"total": json.loads(slowsql)['TotalRecordCount'], "rows": SQLSlowLog,
Expand All @@ -64,7 +64,7 @@ def slowquery_review_history(request):
values = {"PageSize": int(limit), "PageNumber": int(PageNumber)}
# SQLId、DBName非必传
if SQLId:
values['SQLId'] = SQLId
values['SQLHASH'] = SQLId
if DBName:
values['DBName'] = DBName

Expand Down

0 comments on commit e1c15ec

Please sign in to comment.