From be65f8b6517bd9a1599d8dce965a7b1944336418 Mon Sep 17 00:00:00 2001 From: norohind <60548839+norohind@users.noreply.github.com> Date: Tue, 26 Oct 2021 13:28:03 +0300 Subject: [PATCH] fix broken logic with ids holes detecting --- main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index ec8d3a4..d127dc3 100644 --- a/main.py +++ b/main.py @@ -58,6 +58,7 @@ def discover(): # id_to_try = utils.get_last_known_id(db) # id_to_try = utils.get_next_id_for_discover(db) - 1 + id_to_try = utils.get_next_hole_id_for_discover(db) - 1 tries: int = 0 failed: list = list() TRIES_LIMIT_RETROSPECTIVELY: int = 5000 @@ -79,7 +80,7 @@ def discover(): """ while True: - id_to_try = utils.get_next_hole_id_for_discover(db) + id_to_try = id_to_try + 1 # logger.debug(f'Starting discover loop iteration, tries: {tries} of {tries_limit}, id to try {id_to_try}, ' # f'failed list: {failed}')