some testsing

This commit is contained in:
2024-01-28 02:32:07 -05:00
parent 61ebfa776e
commit 77eb2c78eb
4 changed files with 799 additions and 1 deletions

View File

@@ -142,6 +142,7 @@ def meta_from_profile(profile: dict) -> dict:
raise Exception("Could not get profile metadata", profile)
cols = [
"name",
"steam64Id",
"isCollector",
"isLeetifyStaff",
@@ -170,7 +171,7 @@ def convert_game_scores(game: dict) -> dict:
def games_from_profile(profile: dict) -> list:
games = profile.get("games")
if not games:
if not games and not type(games) == list:
raise Exception("Could not get games from profile", profile)
meta = profile.get("meta")