Skip to content
Snippets Groups Projects

Feat rc_util add function

Closed Bo-Chun Chen requested to merge github/fork/diedpigs/feat-util-add-function into develop
1 file
+ 2
4
Compare changes
  • Side-by-side
  • Inline
+ 2
4
@@ -17,11 +17,9 @@ def add_account(username, full='', reason=''):
def worker(ch, method, properties, body):
msg = json.loads(body)
task = msg['username']
task = msg['task']
print("get msg: {}".format(task))
tasks[task] = True
ch.basic_ack(delivery_tag=method.delivery_tag)
tasks[task] = msg['success']
# Check if all tasks are done
done = True
Loading