From b3f8ba4cec2ad067978e811f6243099312078ac9 Mon Sep 17 00:00:00 2001 From: andrewso <9V5f1FkzI2LD> Date: Thu, 15 Oct 2020 20:19:39 +0100 Subject: [PATCH] [15.10.20] Testing --- src/tweets/collector.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)