Skip to content

Commit bdc5d3a

Browse files
fix incorrect var name and make consistent
1 parent e57cfce commit bdc5d3a

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

catalog/__init__.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def load(slug: str) -> gbt.Game:
2020
"""
2121
# Handle backslashes for Windows
2222
if sys.platform == "win32":
23-
game_slug.replace("/", "\\") # noqa: F821
23+
slug.replace("/", "\\") # noqa: F821
2424

2525
for suffix, reader in READERS.items():
2626
resource_path = _CATALOG_RESOURCE / f"{slug}{suffix}"
@@ -48,17 +48,17 @@ def games() -> pd.DataFrame:
4848
# Calculate the path relative to the root resource
4949
# and remove the suffix to get the "slug"
5050
rel_path = resource_path.relative_to(_CATALOG_RESOURCE)
51-
game_slug = str(rel_path.with_suffix(""))
51+
slug = str(rel_path.with_suffix(""))
5252

5353
# Replace backslashes for Windows
5454
if sys.platform == "win32":
55-
game_slug.replace("\\", "/") # noqa: F821
55+
slug.replace("\\", "/") # noqa: F821
5656

5757
with as_file(resource_path) as path:
5858
game = reader(str(path))
5959
records.append(
6060
{
61-
"Game": game_slug,
61+
"Game": slug,
6262
"Title": game.title,
6363
}
6464
)

0 commit comments

Comments
 (0)