Skip to content

Commit

Permalink
fix unfilled per player count
Browse files Browse the repository at this point in the history
  • Loading branch information
Silvris committed Jan 3, 2024
1 parent 0df0955 commit 468ed9a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Fill.py
Original file line number Diff line number Diff line change
Expand Up @@ -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})')

Expand Down

0 comments on commit 468ed9a

Please sign in to comment.