From 7629dae36da79ea6a3c3e04a92668e70ba903537 Mon Sep 17 00:00:00 2001 From: mxr612 Date: Tue, 3 Jun 2025 22:51:32 +0800 Subject: [PATCH] =?UTF-8?q?[Build=201.2.1]=20fix:=20=E4=BF=AE=E6=AD=A3?= =?UTF-8?q?=E8=81=8C=E4=BD=8D=E8=A7=84=E5=88=99=E8=AF=BB=E5=8F=96=E9=80=BB?= =?UTF-8?q?=E8=BE=91=E4=BB=A5=E9=80=82=E5=BA=94=E6=96=B0=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E6=A0=BC=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 修改读取晋升级别和档次的列索引,从A:B调整为B:C,以确保正确获取数据 - 确保职位规则的处理逻辑与最新的数据结构保持一致 --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index a493cf2..bebfdba 100644 --- a/main.py +++ b/main.py @@ -76,7 +76,7 @@ while True: # 名称变化 # 读取职位对应的级别限制 Level_Limit_tmp = pd.read_excel("原数据.xlsx", sheet_name="职位规则", usecols="A:A", skiprows=2, names=["limit"]) -Promote_Level_tmp = pd.read_excel("原数据.xlsx", sheet_name="职位规则", usecols="A:B", skiprows=2, names=["级别","档次"]) +Promote_Level_tmp = pd.read_excel("原数据.xlsx", sheet_name="职位规则", usecols="B:C", skiprows=2, names=["级别","档次"]) Level_Limit = {} Promote_Level = {} for rule in Rule_Role: