even more encoding
@@ -172,8 +172,9 @@ class SDNConnect(object):
self.logger.info(
'timestamps {0}'.format(timestamps))
for timestamp in timestamps:
- ml_info = self.r.hgetall(
- mac+'_'+str(timestamp))
+ b_timestamp = '_' + \
+ str(timestamp).encode('utf-8')
+ ml_info = self.r.hgetall(mac+b_timestamp)
labels = ast.literal_eval(
ml_info[b'labels'].decode('ascii'))
confidences = ast.literal_eval(
