Skip to content

Commit

Permalink
finished updating selet option pokemon
Browse files Browse the repository at this point in the history
  • Loading branch information
cringe-neko-girl committed Feb 16, 2025
1 parent 0ab2332 commit d83f1c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Cogs/pokemon.py
Original file line number Diff line number Diff line change
Expand Up @@ -2198,7 +2198,7 @@ def get_pokemon_id(self, form_name):
# Get pokemon ID from the response
return {"id": data["id"], "slug": form_name.lower()}

def get_pokemon_description_first(self, pokemon_name):
def get_pokemon_description_first(self, pokemon_name):
file_path="Data/pokemon/pokemon_description.csv"
with open(file_path, mode="r", encoding="utf-8") as csv_file:
reader = csv.DictReader(csv_file)
Expand All @@ -2207,7 +2207,7 @@ def get_pokemon_description_first(self, pokemon_name):
if row["slug"].lower() == pokemon_name.lower(): # Match by name (slug)
return row["description"]

return "Pokémon not found"
return "Pokémon not found"

def format_pokemon_name(self, name):
"""Format Pokemon names by handling forms like Alolan Vulpix, Gigantamax, etc."""
Expand Down

0 comments on commit d83f1c3

Please sign in to comment.