feat(web): up avatars, follower count, and dedupe views/avg secondary
This commit is contained in:
1 parent
1ed3746f4b
commit
2ff3e7952b
23 files changed
+209
-58
No files matched your search
@@ -106,6 +106,16 @@ def build_db(tmp: str | Path) -> Path:
|
||||
)
|
||||
repo.set_video_status(103, "unfaved")
|
||||
|
||||
# UP 头像与最新粉丝数(UP 列表/详情展示用)
|
||||
repo.apply_up_follower(
|
||||
mid=1, name="UP A", follower=12345, following=5, now=ts("2026-10-30")
|
||||
)
|
||||
repo.apply_up_follower(
|
||||
mid=2, name="UP B", follower=678, following=1, now=ts("2026-10-31")
|
||||
)
|
||||
repo.apply_video_up_face(101, "//i0.hdslb.com/bfs/face/a.jpg")
|
||||
repo.apply_video_up_face(103, "//i0.hdslb.com/bfs/face/b.jpg")
|
||||
|
||||
metrics = {
|
||||
101: {"view": 1000, "like": 100, "coin": 20, "favorite": 30, "share": 2, "reply": 10, "danmaku": 12},
|
||||
102: {"view": 5000, "like": 200, "coin": 50, "favorite": 100, "share": 10, "reply": 30, "danmaku": 40},
|
||||
|
||||
Reference in new issue
Block a user