5 conn
= sqlite3
.connect("pokedex/data/pokedex.sqlite")
8 """select p.id, p.name, pf.name
10 join evolution_chains ec on p.evolution_chain_id = ec.id
11 left join pokemon_forms pf on p.id = pf.unique_pokemon_id
12 order by ec.id, is_baby = 0, coalesce(pf.form_base_pokemon_id, p.id),
18 for i
, row
in enumerate(cur
):
19 idmap
.append((1 + i
, row
[0]))
22 """update pokemon set "order" = ? where id = ?""",