Consolidate roster to roster.xlsx and refresh attribution

Every roster the user sends arrives under a different filename, which
forced a code change each time. The roster now lives at a fixed
roster.xlsx; the three superseded copies are removed (git history keeps
them, and each was a strict subset of this one).

This roster claims all 14 previously unattributed Adpingids, so the
report has no unattributed spend. It also moves 5617321 from 周梓君 to
詹涵粤; that id has never spent, so only the 负责 counts shift.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
FANGKK
2026-09-16 17:49:00 +08:00
co-authored by Claude Opus 5
parent 3c21689b8f
commit d0a9cec70d
6 changed files with 17 additions and 101 deletions
+3 -1
View File
@@ -31,7 +31,9 @@ books = [(f, openpyxl.load_workbook(f, data_only=True)) for f in SRC_FILES]
# 优先用独立的 投手.xlsx(月度数据文件已不再带「投手」sheet);
# 没有它时退回到最新一个仍带该 sheet 的月度文件。
# 花名册候选,按优先级从高到低;命中第一个就用它。
ROSTER_PATTERNS = ['投手List*.xlsx', '武汉自投投放下单*.xlsx', '投手.xlsx']
# 花名册统一放在 roster.xlsx —— 用户每次发来的新表(文件名各异)都覆盖到这个名字,
# 这样不必每换一个文件名就改一次代码。
ROSTER_PATTERNS = ['roster.xlsx']
roster_file, roster = None, None
for pat in ROSTER_PATTERNS:
hits = sorted(glob.glob(os.path.join(HERE, pat)))