From bcc5650f2d7fa61fd544c01e7d092b6cfc382457 Mon Sep 17 00:00:00 2001 From: Krish M <krish94@uab.edu> Date: Mon, 16 May 2022 13:07:44 -0500 Subject: [PATCH] Added updated_by field Variable added to identify person who updated user state --- tasks.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tasks.py b/tasks.py index 72539c9..a5f3877 100644 --- a/tasks.py +++ b/tasks.py @@ -90,11 +90,12 @@ def celery_certify_account(json, session): email= json['email'] fullname= json['fullname'] queuename= rc_util.encode_name(username) + updated_by= f'{username}@login005' print("CERTIFY : "+time.strftime("%m-%d-%Y_%H:%M:%S") + '\tUser ' + username + ' added to queue') send_msg('certifying account', room) print(username) - rc_util.certify_account(username, queuename, 'ok', 'all') + rc_util.certify_account(username, queuename, 'ok', 'all', updated_by) print('sent account info') print('Waiting for certification...') rc_util.consume(queuename, routing_key=f'certified.{queuename}', callback=certify_gen_f(room)) -- GitLab