Compare commits
2 Commits
0a17d98781
...
77490bae60
Author | SHA1 | Date | |
---|---|---|---|
77490bae60 | |||
625b7926eb |
@ -18,4 +18,12 @@ try:
|
|||||||
consumer.close()
|
consumer.close()
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
consumer.close()
|
consumer.close()
|
||||||
print(DATETIMES)
|
dt = {}
|
||||||
|
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
|
||||||
|
else:
|
||||||
|
dt[strftime("%m/%d/%Y, %H:%M:%S")] +=1
|
||||||
|
for key, value in dt:
|
||||||
|
print(key,",",value)
|
||||||
|
@ -24,4 +24,12 @@ try:
|
|||||||
channel.start_consuming()
|
channel.start_consuming()
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
connection.close()
|
connection.close()
|
||||||
print(DATETIMES)
|
dt = {}
|
||||||
|
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
|
||||||
|
else:
|
||||||
|
dt[strftime("%m/%d/%Y, %H:%M:%S")] +=1
|
||||||
|
for key, value in dt:
|
||||||
|
print(key,",",value)
|
||||||
|
@ -18,4 +18,12 @@ try:
|
|||||||
DATETIMES.append(datetime.now())
|
DATETIMES.append(datetime.now())
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
socket.close()
|
socket.close()
|
||||||
print(DATETIMES)
|
dt = {}
|
||||||
|
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
|
||||||
|
else:
|
||||||
|
dt[strftime("%m/%d/%Y, %H:%M:%S")] +=1
|
||||||
|
for key, value in dt:
|
||||||
|
print(key,",",value)
|
||||||
|
Loading…
Reference in New Issue
Block a user