Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion app/view/another_window/student/import_student_name.py
Original file line number Diff line number Diff line change
Expand Up @@ -448,6 +448,9 @@ def __load_file(self, file_path: str):
raise ValueError(
get_content_name_async("import_student_name", "unsupported_format")
)

# 将列名转换为字符串,避免整数列名与UI层字符串不匹配
data.columns = [str(col) for col in data.columns]

# 获取列名
columns = list(data.columns)
Expand Down Expand Up @@ -938,4 +941,4 @@ def __save_student_data(self, class_name: str, student_data: List[Dict[str, Any]
f"已覆盖班级 '{class_name}' 的数据,共 {len(all_students)} 名学生"
)
else:
logger.info(f"已保存 {len(all_students)} 名学生到新班级 '{class_name}'")
logger.info(f"已保存 {len(all_students)} 名学生到新班级 '{class_name}'")

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@copilot apply changes based on this feedback

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

已按反馈修复,移除了该处多余的 CR 行尾字符,当前仅保留正常换行格式。对应提交:bd80e72。本次没有 UI 变更,因此无截图。

Expand Down
Loading