mirror of
https://github.com/PaiGramTeam/MibooGram.git
synced 2024-11-16 04:45:27 +00:00
🐛 Fix to get the question id
This commit is contained in:
parent
514d1bf3b0
commit
cfae262c0e
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user