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

Update rc_util for aup value

parent dfe75c89
No related branches found
No related tags found
1 merge request!124Feat aup
......@@ -48,7 +48,7 @@ def timeout(seconds=30, error_message=os.strerror(errno.ETIME)):
return decorator
def add_account(username, queuename, email, full="", reason=""):
def add_account(username, queuename, email, full="", reason="", aup=False):
rc_rmq.publish_msg(
{
"routing_key": "request." + queuename,
......@@ -58,11 +58,13 @@ def add_account(username, queuename, email, full="", reason=""):
"fullname": full,
"reason": reason,
"queuename": queuename,
"aup": aup,
},
}
)
rc_rmq.disconnect()
def certify_account(username, queuename, state="ok", service="all"):
rc_rmq.publish_msg(
{
......@@ -77,6 +79,7 @@ def certify_account(username, queuename, state="ok", service="all"):
)
rc_rmq.disconnect()
def worker(ch, method, properties, body):
msg = json.loads(body)
username = msg["username"]
......
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