How to use the octobot.api.strategy_optimizer.get_optimizer_overall_progress function in OctoBot

To help you get started, we’ve selected a few OctoBot examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Drakkar-Software / OctoBot-Tentacles / Services / Interfaces / web_interface / models / strategy_optimizer.py View on Github external
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