Skip to content

Commit

Permalink
fix logic error
Browse files Browse the repository at this point in the history
  • Loading branch information
offish committed Feb 13, 2024
1 parent a7383f7 commit e52b12b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/tf2_data/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
__title__ = "tf2-data"
__author__ = "offish"
__version__ = "0.0.6"
__version__ = "0.0.7"
__license__ = "MIT"

from .schema import Schema, SchemaItems, IEconItems
Expand Down
5 changes: 4 additions & 1 deletion src/tf2_data/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,14 +76,17 @@ def __init__(
defindex_names = read_json_file(DEFINDEX_NAMES_PATH)

if not defindex_full_names:
defindex_names = read_json_file(DEFINDEX_FULL_NAMES_PATH)
defindex_full_names = read_json_file(DEFINDEX_FULL_NAMES_PATH)

if isinstance(schema_items, str):
schema_items = read_json_file(schema_items)

if isinstance(defindex_names, str):
defindex_names = read_json_file(defindex_names)

if isinstance(defindex_full_names, str):
defindex_full_names = read_json_file(defindex_full_names)

self.schema_items = schema_items
self.defindex_names = defindex_names
self.defindex_full_names = defindex_full_names
Expand Down

0 comments on commit e52b12b

Please sign in to comment.