From 9656a061188639f94409a0049d81afde9fee812e Mon Sep 17 00:00:00 2001
From: root <root@login001.cm.cluster>
Date: Thu, 18 Nov 2021 13:26:53 -0600
Subject: [PATCH] unpacked new field aup from json object and sent to celery

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

diff --git a/tasks.py b/tasks.py
index acf3818..300a58c 100644
--- a/tasks.py
+++ b/tasks.py
@@ -51,12 +51,13 @@ def celery_create_account(json, session):
     email= json['email']
     fullname= json['fullname']
     reason= json['reason']
+    aup= json['aup']
     queuename= rc_util.encode_name(username)
 
     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, aup)
     print('sent account info')
     print('Waiting for completion...')
     rc_util.consume(queuename, routing_key=f'complete.{queuename}', callback=gen_f(room))    
-- 
GitLab