针对tap 的tags 数据基于order进行评分
This commit is contained in:
parent
f6be1ac090
commit
58224bb728
@ -33,7 +33,6 @@ class TapTapReport:
|
||||
where
|
||||
"$part_date"='{self.day}'"""
|
||||
data = self.tga.get_data(sql)
|
||||
pdb.set_trace()
|
||||
tags_data = {}
|
||||
if data:
|
||||
for line in data:
|
||||
@ -42,6 +41,8 @@ class TapTapReport:
|
||||
temp_dict = tags_data.get(catename, {})
|
||||
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()
|
||||
tags_data.update(temp_dict)
|
||||
except Exception:
|
||||
log.error(f"split {line} failed", exc_info=True)
|
||||
|
Loading…
x
Reference in New Issue
Block a user