数据仅一天有记录的,暂不上报

This commit is contained in:
pengtao 2019-11-14 10:56:53 +08:00
parent f9ad9ce1d6
commit 8d766deea2

View File

@ -83,14 +83,18 @@ class TapTapReport:
for item in items:
all = self.diff_item(all, item)
i = 0
for line in all.values():
try:
#print(line)
if line.get("order", 0) >= 1:
mydb.insert("taptap_collect", line)
i += 1
except Exception:
log.error(f"install 2 db failed ,values={line}", exc_info=True)
finally:
log.info(f"insert {i} 2 mysql!")
def get_gameid_info(self, day):
all_data = dict()