def random_profile(): pokemon_id = request.args.get("randomProfileBox") pokemon = utils.get_pokemon_by_id(pokemon_id) return json.dumps(pokemon)
def search_by_id(): pokemon_id = request.args.get("searchIDBox") print pokemon_id pokemon = utils.get_pokemon_by_id(pokemon_id) return json.dumps(pokemon)