Skip to content
Snippets Groups Projects

added certify_account function

Merged Krish Moodbidri requested to merge github/fork/krishmoodbidri/feat-certify-acc into feat-cod-rmq
1 file
+ 13
0
Compare changes
  • Side-by-side
  • Inline
+ 13
0
@@ -34,6 +34,19 @@ def add_account(username, queuename, email, full="", reason=""):
)
rc_rmq.disconnect()
def certify_account(username, queuename, state="ok", service="all"):
rc_rmq.publish_msg(
{
"routing_key": "acctmgr.request." + queuename,
"msg": {
"username": username,
"service": service,
"state": state,
"queuename": queuename,
},
}
)
rc_rmq.disconnect()
def worker(ch, method, properties, body):
msg = json.loads(body)
Loading