OxbridgeEconomics
commited on
Update utils.py
Browse files
utils.py
CHANGED
@@ -123,7 +123,7 @@ def sentiment_computation(content):
|
|
123 |
def upsert_content(report):
|
124 |
"""Upsert the content records"""
|
125 |
dynamodb = get_db_connection()
|
126 |
-
table = dynamodb.Table('
|
127 |
# Define the item data
|
128 |
item = {
|
129 |
'id': str(report['id']),
|
@@ -144,4 +144,4 @@ def upsert_content(report):
|
|
144 |
'LastModifiedDate': datetime.now().strftime("%Y-%m-%dT%H:%M:%S")
|
145 |
}
|
146 |
response = table.put_item(Item=item)
|
147 |
-
print(response)
|
|
|
123 |
def upsert_content(report):
|
124 |
"""Upsert the content records"""
|
125 |
dynamodb = get_db_connection()
|
126 |
+
table = dynamodb.Table('article_china')
|
127 |
# Define the item data
|
128 |
item = {
|
129 |
'id': str(report['id']),
|
|
|
144 |
'LastModifiedDate': datetime.now().strftime("%Y-%m-%dT%H:%M:%S")
|
145 |
}
|
146 |
response = table.put_item(Item=item)
|
147 |
+
print(response)
|