Skip to content
Snippets Groups Projects
Commit 20abd8e2 authored by Bo-Chun Chen's avatar Bo-Chun Chen
Browse files

Fix redefined-outer-name

parent d5f3ebb9
No related branches found
No related tags found
No related merge requests found
......@@ -136,20 +136,20 @@ def send_msg(event, room):
@celery.task
def celery_create_account(json, session):
def celery_create_account(msg, session):
"""
This function is used to create account for new users
Input:
json: json object of all user attributes and session/room
msg: json object of all user attributes and session/room
Output:
gen_f(room): callback to check for success or failure
"""
room = session
username = json["username"]
email = json["email"]
fullname = json["fullname"]
reason = json["reason"]
# aup= json['aup']
username = msg["username"]
email = msg["email"]
fullname = msg["fullname"]
reason = msg["reason"]
# aup= msg['aup']
queuename = rc_util.encode_name(username)
updated_by = f"{username}"
host = vars.app_host
......@@ -173,16 +173,16 @@ def celery_create_account(json, session):
@celery.task
def celery_certify_account(json, session):
def celery_certify_account(msg, session):
"""
This function is used to certify account for existing users
Input:
json: json object of all user attributes and session/room
msg: json object of all user attributes and session/room
Output:
gen_f(room): callback to check for success or failure
"""
room = session
username = json["username"]
username = msg["username"]
queuename = rc_util.encode_name(username)
updated_by = f"{username}"
host = vars.app_host
......
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