From 73bc5fb3767ce9c2f58b944b864ab75ce47339a5 Mon Sep 17 00:00:00 2001 From: Fabian Dill Date: Wed, 14 Apr 2021 04:19:44 +0200 Subject: [PATCH] restore sanity check for exported technologies --- FactorioClient.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FactorioClient.py b/FactorioClient.py index d3e3cb44..118aaf5f 100644 --- a/FactorioClient.py +++ b/FactorioClient.py @@ -108,7 +108,7 @@ async def game_watcher(ctx: FactorioContext): with open(bridge_file) as f: data = json.load(f) research_data = data["research_done"] - research_data = {int(tech_name.split("-")[1]) for tech_name in research_data} + research_data = {int(tech_name.split("-")[1]) for tech_name in research_data if tech_name.startswith("ap-")} if ctx.locations_checked != research_data: bridge_logger.info(f"New researches done: " f"{[lookup_id_to_name[rid] for rid in research_data - ctx.locations_checked]}")