Skip to content

Commit

Permalink
Hopefully this also fixes the webhost test failures.
Browse files Browse the repository at this point in the history
  • Loading branch information
ThePhar committed Apr 20, 2024
1 parent d650dd5 commit d04c1a0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions WebHostLib/tracker.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import datetime
import collections
from dataclasses import dataclass
from typing import Any, Callable, Dict, List, Optional, Set, Tuple, NamedTuple
from typing import Any, Callable, Dict, List, Optional, Set, Tuple, NamedTuple, Counter
from uuid import UUID

from flask import render_template
Expand Down Expand Up @@ -501,7 +501,7 @@ class RegionCounts(NamedTuple):
total: int
checked: int

def prepare_inventories(team: int, player: int, inventory: collections.Counter[str], tracker_data: TrackerData):
def prepare_inventories(team: int, player: int, inventory: Counter[str], tracker_data: TrackerData):
for item, (prog_item, level) in non_progressive_items.items():
if item in inventory:
inventory[prog_item] = min(max(inventory[prog_item], level), progressive_item_max[prog_item])
Expand All @@ -525,7 +525,7 @@ def prepare_inventories(team: int, player: int, inventory: collections.Counter[s
inventory["Triforce"] = 1

def render_ALinkToThePast_multiworld_tracker(tracker_data: TrackerData, enabled_trackers: List[str]):
inventories: Dict[Tuple[int, int], collections.Counter[str]] = {
inventories: Dict[Tuple[int, int], Counter[str]] = {
(team, player): collections.Counter({
tracker_data.item_id_to_name["A Link to the Past"][code]: count
for code, count in tracker_data.get_player_inventory_counts(team, player).items()
Expand Down

0 comments on commit d04c1a0

Please sign in to comment.