diff --git a/src/tf2_data/__init__.py b/src/tf2_data/__init__.py index c5dead3..cc594c0 100644 --- a/src/tf2_data/__init__.py +++ b/src/tf2_data/__init__.py @@ -1,6 +1,6 @@ __title__ = "tf2-data" __author__ = "offish" -__version__ = "0.0.3" +__version__ = "0.0.4" __license__ = "MIT" from .schema import Schema, SchemaItems, IEconItems diff --git a/src/tf2_data/schema.py b/src/tf2_data/schema.py index 48dcb10..e5108e7 100644 --- a/src/tf2_data/schema.py +++ b/src/tf2_data/schema.py @@ -88,11 +88,13 @@ def map_defindex_name(self) -> dict: defindex = item["defindex"] # map both ways for ease of use - data[defindex] = name + # defindex as key is str + data[str(defindex)] = name # map name to all defindexes # e.g. mann co key has multiple defindexes if name not in data: + # defindex as value are ints data[name] = [defindex] else: data[name] += [defindex]