commit c3a02c7bece98445ee3f0ecd9ab26b8fa2481670 from: Aleksey Ryndin date: Tue Oct 22 06:22:00 2024 UTC Fix: page_lonk new algorithm commit - 277b69f72662ff7005646785b419f2b0da3d4c33 commit + c3a02c7bece98445ee3f0ecd9ab26b8fa2481670 blob - 1e5d0ad069729550c32d9a0bd3aec1c7132e629a blob + 497d32707807cf9b8abf7a16f9c1309a68c7a01e --- lonk.py +++ lonk.py @@ -338,7 +338,7 @@ def page_lonk(lonk_url, honk_url): lonk_page[honk["Convoy"]] = _LonkTreeItem(honk) correction_map = {} - for convoy in list(reversed([convoy for convoy, item in lonk_page.items() if item is None]))[:36]: + for convoy in list(reversed([convoy for convoy, item in lonk_page.items() if item is None]))[:28]: convoy = correction_map.get(convoy, convoy) if lonk_page.get(convoy) is not None: continue @@ -346,6 +346,7 @@ def page_lonk(lonk_url, honk_url): if honk["What"] == "honked": if convoy != honk["Convoy"]: correction_map[convoy] = honk["Convoy"] + lonk_page[convoy] = _LonkTreeItem(None) convoy = honk["Convoy"] if lonk_page.get(convoy) is None: lonk_page[convoy] = _LonkTreeItem(honk)