diff --git a/optimizer/main.py b/optimizer/main.py index c24e865..227a660 100644 --- a/optimizer/main.py +++ b/optimizer/main.py @@ -285,7 +285,7 @@ def request_force_timeout(url: str): tas_has_finished = "Running: False" in session_data if not tas_has_finished and not init: - deaths_str = session_data.partition('Deaths: ')[2].partition('\n')[0] if 'Deaths: ' in session_data else None + deaths_str = session_data.partition('Deaths: ')[2].partition('<')[0].partition('\n')[0] if 'Deaths: ' in session_data else None deaths = int(deaths_str) if deaths_str else 0 tas_has_finished = deaths > self.target_deaths