diff --git a/taptap/tap_split_tags.py b/taptap/tap_split_tags.py index 05a8b01..c5072b4 100644 --- a/taptap/tap_split_tags.py +++ b/taptap/tap_split_tags.py @@ -3,7 +3,7 @@ from ops.mmysql import MysqlBase from ops.plog import define_logger import logging import datetime - +from collections import defaultdict import pdb define_logger("/data/logs/ops/split_tags.log") log = logging.getLogger(__name__) @@ -21,6 +21,7 @@ class SplitTapTags: def run(self): all = dict() for types in self.type: + all[types] = defaultdict[dict] sql = f"""select tags from @@ -30,7 +31,6 @@ class SplitTapTags: and date='{self.day}' """ tags = self.db_conn.query(sql) if tags: - pdb.set_trace() for line in tags: if line: try: