From ae01af1bd09e6d1ab907b3bc8b33e06c7ec57868 Mon Sep 17 00:00:00 2001 From: pengtao Date: Mon, 11 Nov 2019 11:21:39 +0800 Subject: [PATCH] add tags field --- taptap/taptap_report_new.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/taptap/taptap_report_new.py b/taptap/taptap_report_new.py index 6055c7a..11de43f 100644 --- a/taptap/taptap_report_new.py +++ b/taptap/taptap_report_new.py @@ -96,7 +96,10 @@ class TapTapReport: for line in all.values(): try: #print(line) - mydb.insert("taptap_data_new", line) + if line.get('current_order') > 0: + mydb.insert("taptap_data_new", line) + else: + log.error(f"some value is zore ,{line}!") except Exception: log.error(f"install 2 db failed ,values={line}", exc_info=True)