Fix subtopic id

This commit is contained in:
Karol
2019-10-13 22:14:11 +02:00
parent 3bc2ef8b5d
commit eab6634c3f

View File

@@ -91,9 +91,9 @@ while True:
json_dict = json.loads(line)
for item in json_dict:
value = json_dict[item]
if "model" in item:
if item == "model":
subtopic = value
if "id" in item:
if item == "id":
subtopic += "/" + str(value)
for item in json_dict: