diff --git a/src/tweets/collector.py b/src/tweets/collector.py index 2e19752..90848a2 100644 --- a/src/tweets/collector.py +++ b/src/tweets/collector.py @@ -40,7 +40,7 @@ def sendToArtemis(syncId, pos, neu, neg, compound, type): strippedTimestamp = timestamp.replace(minute=0, second=0, microsecond=0) timestamp = strippedTimestamp.strftime('%Y-%m-%dT%H:%M:%S') - message = { "timestamp" : timestamp, "syncId": syncId, "pos" : pos, "neu" : neu, "neg" : neg, "compound" : compound, "type": type } + message = { "timestamp" : timestamp, "syncId": str(syncId), "pos" : pos, "neu" : neu, "neg" : neg, "compound" : compound, "type": type } messageJson = json.dumps(message, indent = 4)