From 468ed9a8a13f4364f4cdd99e7921b887bc23f215 Mon Sep 17 00:00:00 2001 From: Silvris <58583688+Silvris@users.noreply.github.com> Date: Wed, 3 Jan 2024 02:48:05 -0600 Subject: [PATCH] fix unfilled per player count --- Fill.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Fill.py b/Fill.py index 525d27d3388e..36c61214683e 100644 --- a/Fill.py +++ b/Fill.py @@ -481,10 +481,9 @@ def mark_for_locking(location: Location): if unplaced or unfilled: logging.warning( f'Unplaced items({len(unplaced)}): {unplaced} - Unfilled Locations({len(unfilled)}): {unfilled}') - items_counter = Counter(location.item.player for location in world.get_locations() if location.item) + items_counter = Counter(location.item.player for location in world.get_filled_locations()) locations_counter = Counter(location.player for location in world.get_locations()) items_counter.update(item.player for item in unplaced) - locations_counter.update(location.player for location in unfilled) print_data = {"items": items_counter, "locations": locations_counter} logging.info(f'Per-Player counts: {print_data})')