Skip to content
Snippets Groups Projects
Commit 100629b6 authored by Ravi Tripathi's avatar Ravi Tripathi
Browse files

Merge branch 'feat-updated-by' into 'master'

Added updated_by field

See merge request rc/self-reg-form!36
parents d41d88b2 0585cd18
No related branches found
No related tags found
No related merge requests found
...@@ -90,11 +90,13 @@ def celery_certify_account(json, session): ...@@ -90,11 +90,13 @@ def celery_certify_account(json, session):
email= json['email'] email= json['email']
fullname= json['fullname'] fullname= json['fullname']
queuename= rc_util.encode_name(username) queuename= rc_util.encode_name(username)
updated_by= f'{username}'
host= vars.app_host
print("CERTIFY : "+time.strftime("%m-%d-%Y_%H:%M:%S") + '\tUser ' + username + ' added to queue') print("CERTIFY : "+time.strftime("%m-%d-%Y_%H:%M:%S") + '\tUser ' + username + ' added to queue')
send_msg('certifying account', room) send_msg('certifying account', room)
print(username) print(username)
rc_util.certify_account(username, queuename, 'ok', 'all') rc_util.certify_account(username, queuename, 'ok', 'all', updated_by, host)
print('sent account info') print('sent account info')
print('Waiting for certification...') print('Waiting for certification...')
rc_util.consume(queuename, routing_key=f'certified.{queuename}', callback=certify_gen_f(room)) rc_util.consume(queuename, routing_key=f'certified.{queuename}', callback=certify_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