diff options
Diffstat (limited to 'main.py')
| -rw-r--r-- | main.py | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -343,7 +343,7 @@ async def guest_middleware(handler, event, data): correct_option = options[0] correct_option_id = None is_anon = True - allow_multiple_answers = False + allows_multiple_answers = False if event.guest_message: mid = user_id @@ -359,10 +359,10 @@ async def guest_middleware(handler, event, data): correct_option_id = options.index(correct_option) elif poll_type == "poll": poll_type = "regular" - allow_multiple_answers = False + allows_multiple_answers = False elif poll_type == "multipoll": poll_type = "regular" - allow_multiple_answers = True + allows_multiple_answers = True else: poll_type = "regular" @@ -374,6 +374,7 @@ async def guest_middleware(handler, event, data): options=options, is_anonymous=is_anon, poll_type=poll_type, + allows_multiple_answers=allows_multiple_answers, correct_option_id=correct_option_id, user_id=mid ) |