feat(tools): import 90-day fan history from public data source

This commit is contained in:
kairee committed 2026-11-01 00:06:52 +08:00
1 parent f9a5478800
commit ff101803cd
3 files changed
+475

No files matched your search

+6
View File
@@ -389,6 +389,12 @@ def _seed_up_stats(
inserted = 0
for mid, data in latest.items():
existing = conn.execute(
"SELECT COUNT(*) FROM up_stat WHERE mid = ? AND ok = 1", (int(mid),)
).fetchone()[0]
if int(existing) >= 2:
# 已有真实历史时保留原样,不合成粉丝数据。
continue
follower = int(data.get("follower") or 0)
following = data.get("following")
current = follower