Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def get_optimizer_status():
optimizer = WebInterface.tools[BOT_TOOLS_STRATEGY_OPTIMIZER]
if optimizer:
if is_optimizer_computing(optimizer):
return "computing", get_optimizer_current_test_suite_progress(optimizer), \
get_optimizer_overall_progress(optimizer), \
get_optimizer_errors_description(optimizer)
else:
return "finished", 100, 100, get_optimizer_errors_description(optimizer)
else:
return "not started", 0, 0, None
def get_optimizer_status():
optimizer = WebInterface.tools[BOT_TOOLS_STRATEGY_OPTIMIZER]
if optimizer:
if is_optimizer_computing(optimizer):
return "computing", get_optimizer_current_test_suite_progress(optimizer), \
get_optimizer_overall_progress(optimizer), \
get_optimizer_errors_description(optimizer)
else:
return "finished", 100, 100, get_optimizer_errors_description(optimizer)
else:
return "not started", 0, 0, None