Skip to content
Closed
Changes from all commits
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
10 changes: 10 additions & 0 deletions app/common/roll_call/roll_call_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -504,6 +504,11 @@
group_filter: 小组过滤器
"""
reset_drawn_record(window, class_name, gender_filter, group_filter)

Check failure on line 507 in app/common/roll_call/roll_call_utils.py

View workflow job for this annotation

GitHub Actions / ruff

Ruff (W293)

app/common/roll_call/roll_call_utils.py:507:1: W293 Blank line contains whitespace
# 清除缓存,确保下次抽取时重新读取记录
record_key = f"{class_name}_{gender_filter}_{group_filter}"
if record_key in RollCallUtils._drawn_record_cache:
del RollCallUtils._drawn_record_cache[record_key]

@staticmethod
def update_start_button_state(button, total_count):
Expand Down Expand Up @@ -637,6 +642,11 @@
group=group_filter,
student_name=selected_students,
)

Check failure on line 645 in app/common/roll_call/roll_call_utils.py

View workflow job for this annotation

GitHub Actions / ruff

Ruff (W293)

app/common/roll_call/roll_call_utils.py:645:1: W293 Blank line contains whitespace
# 清除缓存,确保下次抽取时重新读取最新的已抽取记录
record_key = f"{class_name}_{gender_filter}_{group_filter}"
if record_key in RollCallUtils._drawn_record_cache:
del RollCallUtils._drawn_record_cache[record_key]

if selected_students_dict:
save_roll_call_history(
Expand Down
Loading