This commit is contained in:
root 2019-11-25 14:48:44 +08:00
parent ab11874cfe
commit c34e1c15b4

View File

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