This commit is contained in:
pengtao 2019-11-25 14:44:05 +08:00
parent 90e4986353
commit 27dab2272d

View File

@ -557,10 +557,8 @@ class TapWeeklyReport:
for line in data:
try:
data_type = line.get("name")
pdb.set_trace()
for items in line.get("row_data"):
for one_row in items:
for tag in one_row.split(',')[-1]:
for tag in items.split(',')[-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)