|
|
@ -720,7 +720,9 @@ def get_locations_from_bulbapedia(pokemon_name, form, cache): |
|
|
for raw_game, raw_locations in raw_game_locations.items(): |
|
|
for raw_game, raw_locations in raw_game_locations.items(): |
|
|
if form is None: |
|
|
if form is None: |
|
|
for raw_location in raw_locations: |
|
|
for raw_location in raw_locations: |
|
|
locations = raw_location.get_text().split(',') |
|
|
raw_text = raw_location.get_text() |
|
|
|
|
|
raw_text = raw_text.replace("and", ",") |
|
|
|
|
|
locations = raw_text.split(',') |
|
|
for location in locations: |
|
|
for location in locations: |
|
|
if raw_game not in game_locations: |
|
|
if raw_game not in game_locations: |
|
|
game_locations[raw_game] = [] |
|
|
game_locations[raw_game] = [] |
|
|
|