a
This commit is contained in:
parent
614c8650a1
commit
44c6ef76c7
@ -4,6 +4,7 @@ from ops.plog import define_logger
|
||||
import logging
|
||||
import datetime
|
||||
|
||||
import pdb
|
||||
define_logger("/data/logs/ops/split_tags.log")
|
||||
log = logging.getLogger(__name__)
|
||||
|
||||
@ -29,10 +30,11 @@ class SplitTapTags:
|
||||
and date='{self.day}' """
|
||||
tags = self.db_conn.query(sql)
|
||||
if tags:
|
||||
pdb.set_trace()
|
||||
for line in tags:
|
||||
if line:
|
||||
try:
|
||||
for item in line.split(","):
|
||||
for item in line[0].split(","):
|
||||
all[types][item] = all[types].get('item', 0) + 1
|
||||
except Exception:
|
||||
log.error(f"split {line} failed!", exc_info=True)
|
||||
|
Loading…
x
Reference in New Issue
Block a user