|
| 1 | +# ================================================== |
| 2 | +# 历史记录模块 |
| 3 | +# ================================================== |
| 4 | +# 该模块提供历史记录的保存、加载、统计和权重计算功能 |
| 5 | + |
| 6 | +# 文件工具 |
| 7 | +from app.common.history.file_utils import ( |
| 8 | + get_history_file_path, |
| 9 | + load_history_data, |
| 10 | + save_history_data, |
| 11 | + get_all_history_names, |
| 12 | +) |
| 13 | + |
| 14 | +# 统计函数 |
| 15 | +from app.common.history.statistics import ( |
| 16 | + get_name_history, |
| 17 | + get_draw_sessions_history, |
| 18 | + get_individual_statistics, |
| 19 | +) |
| 20 | + |
| 21 | +# 抽奖历史 |
| 22 | +from app.common.history.lottery_history import save_lottery_history |
| 23 | + |
| 24 | +# 点名历史 |
| 25 | +from app.common.history.roll_call_history import save_roll_call_history |
| 26 | + |
| 27 | +# 权重工具 |
| 28 | +from app.common.history.weight_utils import ( |
| 29 | + format_weight_for_display, |
| 30 | + calculate_weight, |
| 31 | +) |
| 32 | + |
| 33 | +# 辅助函数 |
| 34 | +from app.common.history.utils import ( |
| 35 | + get_all_names, |
| 36 | + format_table_item, |
| 37 | + create_table_item, |
| 38 | +) |
| 39 | + |
| 40 | +# 历史记录读取工具 |
| 41 | +from app.common.history.history_reader import ( |
| 42 | + # 点名历史读取 |
| 43 | + get_roll_call_student_list, |
| 44 | + get_roll_call_history_data, |
| 45 | + filter_roll_call_history_by_subject, |
| 46 | + get_roll_call_student_total_count, |
| 47 | + get_roll_call_students_data, |
| 48 | + get_roll_call_session_data, |
| 49 | + get_roll_call_student_stats_data, |
| 50 | + check_class_has_gender_or_group, |
| 51 | + # 抽奖历史读取 |
| 52 | + get_lottery_pool_list, |
| 53 | + get_lottery_history_data, |
| 54 | + get_lottery_prizes_data, |
| 55 | + get_lottery_session_data, |
| 56 | + get_lottery_prize_stats_data, |
| 57 | +) |
| 58 | + |
| 59 | +__all__ = [ |
| 60 | + # 文件工具 |
| 61 | + "get_history_file_path", |
| 62 | + "load_history_data", |
| 63 | + "save_history_data", |
| 64 | + "get_all_history_names", |
| 65 | + # 统计函数 |
| 66 | + "get_name_history", |
| 67 | + "get_draw_sessions_history", |
| 68 | + "get_individual_statistics", |
| 69 | + # 抽奖历史 |
| 70 | + "save_lottery_history", |
| 71 | + # 点名历史 |
| 72 | + "save_roll_call_history", |
| 73 | + # 权重工具 |
| 74 | + "format_weight_for_display", |
| 75 | + "calculate_weight", |
| 76 | + # 辅助函数 |
| 77 | + "get_all_names", |
| 78 | + "format_table_item", |
| 79 | + "create_table_item", |
| 80 | + # 历史记录读取工具 |
| 81 | + "get_roll_call_student_list", |
| 82 | + "get_roll_call_history_data", |
| 83 | + "filter_roll_call_history_by_subject", |
| 84 | + "get_roll_call_student_total_count", |
| 85 | + "get_roll_call_students_data", |
| 86 | + "get_roll_call_session_data", |
| 87 | + "get_roll_call_student_stats_data", |
| 88 | + "check_class_has_gender_or_group", |
| 89 | + "get_lottery_pool_list", |
| 90 | + "get_lottery_history_data", |
| 91 | + "get_lottery_prizes_data", |
| 92 | + "get_lottery_session_data", |
| 93 | + "get_lottery_prize_stats_data", |
| 94 | +] |
0 commit comments