OxbridgeEconomics
commited on
Commit
·
b385711
1
Parent(s):
87733d4
commit
Browse files
utils.py
CHANGED
@@ -238,7 +238,7 @@ def update_content(report):
|
|
238 |
response = dynamodb.update_item(
|
239 |
TableName="article_test",
|
240 |
Key={
|
241 |
-
'id': {'S': report['id']},
|
242 |
'site': {'S': report['site']}
|
243 |
},
|
244 |
UpdateExpression='SET title = :title, titleCN = :titleCN, contentCN = :contentCN, category = :category, author = :author, content = :content, subtitle = :subtitle, publishDate = :publishDate, link = :link, attachment = :attachment, sentimentScore = :sentimentScore, sentimentLabel = :sentimentLabel',
|
|
|
238 |
response = dynamodb.update_item(
|
239 |
TableName="article_test",
|
240 |
Key={
|
241 |
+
'id': {'S': str(report['id'])},
|
242 |
'site': {'S': report['site']}
|
243 |
},
|
244 |
UpdateExpression='SET title = :title, titleCN = :titleCN, contentCN = :contentCN, category = :category, author = :author, content = :content, subtitle = :subtitle, publishDate = :publishDate, link = :link, attachment = :attachment, sentimentScore = :sentimentScore, sentimentLabel = :sentimentLabel',
|