OxbridgeEconomics commited on
Commit
3c227dd
·
unverified ·
1 Parent(s): 8d15feb

Update utils.py

Browse files
Files changed (1) hide show
  1. controllers/utils.py +4 -1
controllers/utils.py CHANGED
@@ -249,7 +249,7 @@ def update_content(report):
249
  category = :category, author = :author, content = :content, subtitle = :subtitle, \
250
  publishDate = :publishDate, link = :link, attachment = :attachment, \
251
  sentimentScore = :sentimentScore, sentimentLabel = :sentimentLabel, \
252
- LastModifiedDate = :LastModifiedDate',
253
  ExpressionAttributeValues={
254
  ':title': {
255
  'S': report['title']
@@ -295,6 +295,9 @@ def update_content(report):
295
  },
296
  ':sentimentLabel': {
297
  'S': report['sentimentLabel']
 
 
 
298
  }
299
  })
300
  # vectorize(report)
 
249
  category = :category, author = :author, content = :content, subtitle = :subtitle, \
250
  publishDate = :publishDate, link = :link, attachment = :attachment, \
251
  sentimentScore = :sentimentScore, sentimentLabel = :sentimentLabel, \
252
+ LastModifiedDate = :LastModifiedDate, entityList = :entityList',
253
  ExpressionAttributeValues={
254
  ':title': {
255
  'S': report['title']
 
295
  },
296
  ':sentimentLabel': {
297
  'S': report['sentimentLabel']
298
+ },
299
+ ':entityList': {
300
+ 'L': []
301
  }
302
  })
303
  # vectorize(report)