MCPcopy Create free account
hub / github.com/RocketMap/RocketMap / get_pokemon_data

Function get_pokemon_data

pogom/utils.py:321–330  ·  view source on GitHub ↗
(pokemon_id)

Source from the content-addressed store, hash-verified

319
320
321def get_pokemon_data(pokemon_id):
322 if not hasattr(get_pokemon_data, 'pokemon'):
323 file_path = os.path.join(
324 config['ROOT_PATH'],
325 config['DATA_DIR'],
326 'pokemon.min.json')
327
328 with open(file_path, 'r') as f:
329 get_pokemon_data.pokemon = json.loads(f.read())
330 return get_pokemon_data.pokemon[str(pokemon_id)]
331
332
333def get_pokemon_name(pokemon_id):

Callers 3

get_pokemon_nameFunction · 0.85
get_pokemon_rarityFunction · 0.85
get_pokemon_typesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected