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