File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments