Example #1
0
def show_sick_pokemon():
    sick_pokemon = []
    pokemons = pokemon_repository.select_all()
    for pokemon in pokemons:
        if pokemon.status != "Healthy":
            sick_pokemon.append(pokemon)
    return render_template("pokemon/sick.html", pokemons=sick_pokemon)
Example #2
0
def pokemon():
    pokemons = pokemon_repository.select_all()
    return render_template('/pokemon/index.html', pokemons=pokemons)
Example #3
0
def show_nurses_pokemon(id):
    pokemons = pokemon_repository.select_all()
    nurse = nurse_repository.select(id)
    return render_template("/staff/pokemon.html",
                           nurse=nurse,
                           pokemons=pokemons)
def show_trainers_pokemon(id):
    pokemons = pokemon_repository.select_all()
    trainer = trainer_repository.select(id)
    return render_template("/trainers/pokemon.html", pokemons = pokemons, trainer = trainer)
    
def new_nurse():
    nurses = nurse_repository.select_all()
    pokemons = pokemon_repository.select_all()
    return render_template("nurses/new.html", nurses=nurses, pokemons=pokemons)