From f41df1c32c78477d6a7b79062135192e78277178 Mon Sep 17 00:00:00 2001
From: Krish M <krish94@uab.edu>
Date: Thu, 19 May 2022 11:38:35 -0500
Subject: [PATCH] 1. Added updated_by and host 2. Removed aup variable

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

diff --git a/tasks.py b/tasks.py
index b2eddf3..7753cea 100644
--- a/tasks.py
+++ b/tasks.py
@@ -72,13 +72,14 @@ def celery_create_account(json, session):
     email= json['email']
     fullname= json['fullname']
     reason= json['reason']
-#    aup= json['aup']
     queuename= rc_util.encode_name(username)
+    updated_by= f'{username}'
+    host= vars.app_host
 
     print(time.strftime("%m-%d-%Y_%H:%M:%S") + '\tUser ' + username + ' added to queue')
     send_msg('creating account', room)
     print(username)
-    rc_util.add_account(username, queuename, email, fullname, reason)
+    rc_util.add_account(username, queuename, email, fullname, reason, updated_by, host)
     print('sent account info')
     print('Waiting for completion...')
     rc_util.consume(queuename, routing_key=f'complete.{queuename}', callback=gen_f(room))
-- 
GitLab