OxbridgeEconomics commited on
Commit
1580b60
·
unverified ·
1 Parent(s): d116b64

Update utils.py

Browse files
Files changed (1) hide show
  1. utils.py +2 -2
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('article_test')
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)