From 8aabcbad35a11fbc3ca155cd4cc1350df013273e Mon Sep 17 00:00:00 2001 From: pengtao Date: Thu, 5 Dec 2019 14:39:08 +0800 Subject: [PATCH] =?UTF-8?q?=E9=92=88=E5=AF=B9tap=20=E7=9A=84tags=20?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E5=9F=BA=E4=BA=8Eorder=E8=BF=9B=E8=A1=8C?= =?UTF-8?q?=E8=AF=84=E5=88=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- taptap/taptap_daily_tags.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/taptap/taptap_daily_tags.py b/taptap/taptap_daily_tags.py index 6184e61..c5d1e13 100644 --- a/taptap/taptap_daily_tags.py +++ b/taptap/taptap_daily_tags.py @@ -41,10 +41,10 @@ class TapTapReport: if catename not in tags_data.keys(): tags_data[catename] = {} temp_dict = tags_data.get(catename, {}) - print(f"base temp={temp_dict}") + #print(f"base temp={temp_dict}") for tag in tags.split(","): temp_dict[tag] = temp_dict.get(tag, 0) + self.order2score(order) - print(f"old={tags_data},type={catename},new={temp_dict}") + #print(f"old={tags_data},type={catename},new={temp_dict}") # pdb.set_trace() tags_data[catename].update(temp_dict) except Exception: @@ -57,11 +57,11 @@ class TapTapReport: if order_int <= 10 and order_int >= 1: return 5 elif order_int > 10 and order_int <= 50: - return 2 + return 3 elif order_int <= 200: - return 1 + return 2 else: - return 0 + return 1 except Exception: log.error(f"PLS check order={order} ", exc_info=True) return 0