Skip to content
Snippets Groups Projects
Commit f41df1c3 authored by Krish Moodbidri's avatar Krish Moodbidri
Browse files

1. Added updated_by and host

2. Removed aup variable
parent be2cb91b
No related branches found
No related tags found
No related merge requests found
...@@ -72,13 +72,14 @@ def celery_create_account(json, session): ...@@ -72,13 +72,14 @@ def celery_create_account(json, session):
email= json['email'] email= json['email']
fullname= json['fullname'] fullname= json['fullname']
reason= json['reason'] reason= json['reason']
# aup= json['aup']
queuename= rc_util.encode_name(username) 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') print(time.strftime("%m-%d-%Y_%H:%M:%S") + '\tUser ' + username + ' added to queue')
send_msg('creating account', room) send_msg('creating account', room)
print(username) 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('sent account info')
print('Waiting for completion...') print('Waiting for completion...')
rc_util.consume(queuename, routing_key=f'complete.{queuename}', callback=gen_f(room)) rc_util.consume(queuename, routing_key=f'complete.{queuename}', callback=gen_f(room))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment