🐛 Fix to get the question id

This commit is contained in:
洛水居室 2022-10-28 12:03:45 +08:00
parent 514d1bf3b0
commit cfae262c0e
No known key found for this signature in database
GPG Key ID: C9DE87DA724B88FC

View File

@ -274,8 +274,8 @@ class GroupJoiningVerification(Plugin):
return
else:
raise err
index = random.choice(question_id_list) # nosec
question = await self.quiz_service.get_question(question_id_list[index])
question_id = random.choice(question_id_list) # nosec
question = await self.quiz_service.get_question(question_id)
buttons = [
[
InlineKeyboardButton(