This commit is contained in:
root 2019-11-25 14:55:46 +08:00
parent 503d292559
commit 30c249f1fe

View File

@ -559,10 +559,9 @@ class TapWeeklyReport:
try:
data_type = line.get("name")
row_tags[data_type]={}
pdb.set_trace()
for items in line.get("row_data"):
for tag in items[-1].split(','):
row_tags[data_type][tag] += row_tags[data_type].get(tag, 0) + 1
row_tags[data_type][tag] = row_tags[data_type].get(tag, 0) + 1
except Exception:
log.error(f"collect tags failed with {line}", exc_info=True)
return row_tags