Skip to content

Commit

Permalink
Fix qr email task input
Browse files Browse the repository at this point in the history
  • Loading branch information
sukso96100 committed Jul 21, 2024
1 parent 2b3a3e2 commit 9b05887
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions kiosksvc/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import bcrypt
from django.contrib import messages
from django.core.mail import EmailMessage
from .models import Participant
from random import randint
import uuid
import jwt
Expand All @@ -17,9 +18,9 @@ def random_with_N_digits(n):
return randint(range_start, range_end)

@shared_task
def send_checkin_qr_email(queryset):
for participant in queryset:

def send_checkin_qr_email(participant_list_dict):
for participant_data in participant_list_dict:
participant = Participant.objects.get(id=participant_data['id'])
passcode = str(random_with_N_digits(6))
qr_data = {
"id": participant.id,
Expand Down

0 comments on commit 9b05887

Please sign in to comment.