Пример #1
0
def random_profile():
    pokemon_id = request.args.get("randomProfileBox")
    pokemon = utils.get_pokemon_by_id(pokemon_id)
    return json.dumps(pokemon)
Пример #2
0
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)