From b0d2c66f0943b29d39cd6103e502b3cd26ead300 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torma=20Krist=C3=B3f?= Date: Sun, 25 Apr 2021 13:07:10 +0200 Subject: [PATCH] ups --- kafka/consumer.py | 4 ++-- rabbit/consumer.py | 4 ++-- zmq/consumer.py | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/kafka/consumer.py b/kafka/consumer.py index 483a5ec..7761811 100644 --- a/kafka/consumer.py +++ b/kafka/consumer.py @@ -22,8 +22,8 @@ except KeyboardInterrupt: for datetime in DATETIMES: dts = datetime.strftime("%m/%d/%Y, %H:%M:%S") if dts not in dt: - dt[strftime("%m/%d/%Y, %H:%M:%S")] = 1 + dt[dts] = 1 else: - dt[strftime("%m/%d/%Y, %H:%M:%S")] +=1 + dt[dts] +=1 for key, value in dt: print(key,",",value) diff --git a/rabbit/consumer.py b/rabbit/consumer.py index e414fab..fe8a530 100644 --- a/rabbit/consumer.py +++ b/rabbit/consumer.py @@ -28,8 +28,8 @@ except KeyboardInterrupt: for datetime in DATETIMES: dts = datetime.strftime("%m/%d/%Y, %H:%M:%S") if dts not in dt: - dt[strftime("%m/%d/%Y, %H:%M:%S")] = 1 + dt[dts] = 1 else: - dt[strftime("%m/%d/%Y, %H:%M:%S")] +=1 + dt[dts] +=1 for key, value in dt: print(key,",",value) diff --git a/zmq/consumer.py b/zmq/consumer.py index fe584e2..085deb1 100644 --- a/zmq/consumer.py +++ b/zmq/consumer.py @@ -22,8 +22,8 @@ except KeyboardInterrupt: for datetime in DATETIMES: dts = datetime.strftime("%m/%d/%Y, %H:%M:%S") if dts not in dt: - dt[strftime("%m/%d/%Y, %H:%M:%S")] = 1 + dt[dts] = 1 else: - dt[strftime("%m/%d/%Y, %H:%M:%S")] +=1 + dt[dts] +=1 for key, value in dt: print(key,",",value)