Skip to content
Snippets Groups Projects
Commit aeb4a242 authored by Bo-Chun Chen's avatar Bo-Chun Chen Committed by Ravi Tripathi
Browse files

Update message field name from confirm exchange

parent dcad6010
No related branches found
No related tags found
1 merge request!27Feat rc_util add function
...@@ -17,11 +17,9 @@ def add_account(username, full='', reason=''): ...@@ -17,11 +17,9 @@ def add_account(username, full='', reason=''):
def worker(ch, method, properties, body): def worker(ch, method, properties, body):
msg = json.loads(body) msg = json.loads(body)
task = msg['username'] task = msg['task']
print("get msg: {}".format(task)) print("get msg: {}".format(task))
tasks[task] = msg['success']
tasks[task] = True
ch.basic_ack(delivery_tag=method.delivery_tag)
# Check if all tasks are done # Check if all tasks are done
done = True done = True
......
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