OxbridgeEconomics
commited on
Commit
·
87733d4
1
Parent(s):
d4c6492
commit
Browse files
utils.py
CHANGED
@@ -255,7 +255,7 @@ def update_content(report):
|
|
255 |
'attachment': {'S': report['attachment']},
|
256 |
# 'authorID': str(report['authorid']),
|
257 |
# 'entityList': report['entitylist'],
|
258 |
-
'sentimentScore': {'N': Decimal(str(report['sentimentScore'])).quantize(Decimal('0.01'))},
|
259 |
'sentimentLabel': {'S': report['sentimentLabel']},
|
260 |
'LastModifiedDate': {'S': datetime.now().strftime("%Y-%m-%dT%H:%M:%S")},
|
261 |
# ':sentimentScore': {'N': str(Decimal(str(report['sentimentscore'])).quantize(Decimal('0.01')))},
|
|
|
255 |
'attachment': {'S': report['attachment']},
|
256 |
# 'authorID': str(report['authorid']),
|
257 |
# 'entityList': report['entitylist'],
|
258 |
+
'sentimentScore': {'N': str(Decimal(str(report['sentimentScore'])).quantize(Decimal('0.01')))},
|
259 |
'sentimentLabel': {'S': report['sentimentLabel']},
|
260 |
'LastModifiedDate': {'S': datetime.now().strftime("%Y-%m-%dT%H:%M:%S")},
|
261 |
# ':sentimentScore': {'N': str(Decimal(str(report['sentimentscore'])).quantize(Decimal('0.01')))},
|