From 0deec4c5ab2aa0e6f7191c7d94089a1ffb56944b Mon Sep 17 00:00:00 2001
From: Mitchell Moore <mmoo97@uab.edu>
Date: Fri, 20 Mar 2020 08:41:38 -0500
Subject: [PATCH] Fix variable mismatch

---
 run.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/run.py b/run.py
index 6f6065a..5f0bb8d 100644
--- a/run.py
+++ b/run.py
@@ -34,10 +34,10 @@ def on_room():
 @socketio.on('request account')
 def request_account(json, methods=['GET', 'POST']):
     print (time.strftime("%m-%d-%Y_%H:%M:%S") + '\tQueue request received: ' + str(json))
-    sid = str(session['uid'])
-    print("Room: {}".format(sid))
+    room = str(session['uid'])
+    print("Room: {}".format(room))
     try:
-        tasks.celery_create_account.delay(json['username'], json['fullname'], json['reason'], session=sid)
+        tasks.celery_create_account.delay(json['username'], json['fullname'], json['reason'], session=room)
     except Exception as e:
         print(time.strftime("%m-%d-%Y_%H:%M:%S") + "\tError in account creation: ", e)
         socketio.emit("Account creation failed", room)
-- 
GitLab