针对tap 的tags 数据基于order进行评分
This commit is contained in:
parent
8106a06250
commit
a078193d41
@ -41,10 +41,11 @@ class TapTapReport:
|
||||
if catename not in tags_data.keys():
|
||||
tags_data[catename] = {}
|
||||
temp_dict = tags_data.get(catename, {})
|
||||
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},new={temp_dict}")
|
||||
pdb.set_trace()
|
||||
print(f"old={tags_data},type={catename},new={temp_dict}")
|
||||
# pdb.set_trace()
|
||||
tags_data[catename].update(temp_dict)
|
||||
except Exception:
|
||||
log.error(f"split {line} failed", exc_info=True)
|
||||
|
Loading…
x
Reference in New Issue
Block a user