Skip to content

Commit 7daaae5

Browse files
committed
语音播报基础完成
1 parent 3c43bc8 commit 7daaae5

5 files changed

Lines changed: 772 additions & 502 deletions

File tree

app/Language/modules/voice_settings.py

Lines changed: 0 additions & 121 deletions
This file was deleted.

app/common/lottery/lottery_utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
read_drawn_record_simple,
1919
reset_drawn_record,
2020
)
21-
from app.tools.path_utils import get_resources_path, open_file
21+
from app.tools.path_utils import get_data_path, open_file
2222
from app.tools.settings_access import readme_settings_async, get_safe_font_size
2323

2424
from app.Language.obtain_language import get_any_position_value
@@ -132,7 +132,7 @@ def draw_random_students(
132132
Returns:
133133
dict: 包含抽取结果的字典
134134
"""
135-
student_file = get_resources_path("list/roll_call_list", f"{class_name}.json")
135+
student_file = get_data_path("list/roll_call_list", f"{class_name}.json")
136136
with open_file(student_file, "r", encoding="utf-8") as f:
137137
data = json.load(f)
138138

0 commit comments

Comments
 (0)