Skip to content

Commit

Permalink
Merge pull request #11 from wilsonchaney/fix_json_writes
Browse files Browse the repository at this point in the history
Fix json writes for player dictionary
  • Loading branch information
andrewgiessel committed Nov 14, 2016
2 parents 6035ede + 5e5200d commit fe1908e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion basketballCrawler/basketballCrawler.py
Expand Up @@ -84,7 +84,7 @@ def savePlayerDictionary(playerDictionary, pathToFile):
"""
Saves player dictionary to a JSON file
"""
player_json = [player.to_json() for player in playerDictionary]
player_json = {name: player_data.to_json() for name, player_data in playerDictionary.items()}
json.dump(player_json, open(pathToFile, 'wb'), indent=0)


Expand Down

0 comments on commit fe1908e

Please sign in to comment.