From 5027c9b15b5c7a9de0e59e5ad745793613f07f34 Mon Sep 17 00:00:00 2001 From: Vakaris Date: Sun, 29 Apr 2018 20:14:17 +0300 Subject: [PATCH] Tick under report, while map is still running fixed. Now tick only apears after map generation is finished. --- monkey_island/cc/resources/root.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/monkey_island/cc/resources/root.py b/monkey_island/cc/resources/root.py index 91ac389be..61c788d7e 100644 --- a/monkey_island/cc/resources/root.py +++ b/monkey_island/cc/resources/root.py @@ -57,5 +57,8 @@ class Root(flask_restful.Resource): def get_completed_steps(): is_any_exists = NodeService.is_any_monkey_exists() infection_done = NodeService.is_monkey_finished_running() - report_done = ReportService.is_report_generated() + if not infection_done: + report_done = False + else: + report_done = ReportService.is_report_generated() return dict(run_server=True, run_monkey=is_any_exists, infection_done=infection_done, report_done=report_done)