mirror of
https://github.com/PaiGramTeam/PaiGram.git
synced 2024-11-16 12:51:35 +00:00
添加 service.quiz
的 correct_option
异常时的日记
This commit is contained in:
parent
11153b582c
commit
02fa66f7b6
@ -63,6 +63,8 @@ class Quiz(BasePlugins):
|
||||
if answer["is_correct"] == 1:
|
||||
correct_option = answer["answer"]
|
||||
if correct_option is None:
|
||||
question_id = question["question_id"]
|
||||
Log.warning(f"Quiz模块 correct_option 异常 question_id[{question_id}] ")
|
||||
return None
|
||||
random.shuffle(_options)
|
||||
index = _options.index(correct_option)
|
||||
|
Loading…
Reference in New Issue
Block a user