From b3c75b23ab06fbbec655e5697e2ee8ef53d7db4c Mon Sep 17 00:00:00 2001
From: Krish M <krish94@uab.edu>
Date: Tue, 19 Apr 2022 16:09:59 -0500
Subject: [PATCH] fixed queuename variable

---
 tasks.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tasks.py b/tasks.py
index 5b7fa37..5b724f3 100644
--- a/tasks.py
+++ b/tasks.py
@@ -20,7 +20,7 @@ def gen_f(room):
     def callback(channel, method, properties, body):
         msg = json.loads(body)
         username = msg['username']
-        queuename = msg['username']
+        queuename = msg['queuename']
 
         if msg['success']:
             print(f'Account for {username} has been created.')
@@ -40,7 +40,7 @@ def certify_gen_f(room):
     def callback(channel, method, properties, body):
         msg = json.loads(body)
         username = msg['username']
-        queuename = msg['username']
+        queuename = msg['queuename']
 
         if msg['success']:
             print(f'Account for {username} has been certified.')
-- 
GitLab