From 6c626348b99295b0212b992c47ee304b0682a5b8 Mon Sep 17 00:00:00 2001 From: andrewso <9V5f1FkzI2LD> Date: Wed, 4 Mar 2020 10:49:03 +0000 Subject: [PATCH] [4.03.20] 4 second reduction and fixed status check --- src/pricing/collector.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pricing/collector.py b/src/pricing/collector.py index d3c4705..a55f5a9 100644 --- a/src/pricing/collector.py +++ b/src/pricing/collector.py @@ -88,7 +88,7 @@ def sendToGateway(c_type, timestamp, av_price, high, low, vol, o_price, c_price) status, response = send(query, logger) - if status != '200': + if status != 200: logger.critical("Query wasn't executed properly, view logs. Status = {}".format(status)) logger.error("With Response of : {}".format(response)) else: @@ -110,4 +110,4 @@ def collector(c_type): sendToGateway(c_type, timestamp, av_price, high, low, vol, o_price, c_price) - sleep(3600) \ No newline at end of file + sleep(3596) \ No newline at end of file