From 8a7f1f0b83c47180cdca11b4f6c5d152e56fc674 Mon Sep 17 00:00:00 2001 From: Bo-Chun Louis Chen <louistw@uab.edu> Date: Fri, 24 Apr 2020 14:12:27 -0500 Subject: [PATCH] Solve referenced before assignment --- task_manager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/task_manager.py b/task_manager.py index b7db0e8..78c71f7 100644 --- a/task_manager.py +++ b/task_manager.py @@ -42,7 +42,7 @@ def task_manager(ch, method, properties, body): msg = json.loads(body) username = method.routing_key.split('.')[1] task_name = msg['task'] - success = msg['success'] + done = success = msg['success'] if username not in tracking: current = tracking[username] = record.copy() -- GitLab