浏览代码

update py/DynamoDB-UpdateItem.py.

xdc 5 年之前
父节点
当前提交
24063c0109
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      py/DynamoDB-UpdateItem.py

+ 1 - 1
py/DynamoDB-UpdateItem.py

@@ -18,7 +18,7 @@ def increase_rating(keya,dynamodb=None):
 
 # use Client        
 def updata_ddb(name,msg,alias):
-    client = boto3.client('dynamodb')
+    table = boto3.client('dynamodb')
     table.update_item(TableName='hehe',
         Key={'name': {'S':name}},
         UpdateExpression='SET name = :name, alias = :alias',