Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhancement: Updated Sprite URLs returned by API #727

Merged
merged 3 commits into from
Jul 20, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion data/v2/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
DB_VENDOR = connection.vendor


MEDIA_DIR = "/media/sprites/{0}"
MEDIA_DIR = "https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/{0}"
IMAGE_DIR = os.getcwd() + "/data/v2/sprites/sprites/"
RESOURCE_IMAGES = []

Expand Down
23 changes: 23 additions & 0 deletions pokemon_v2/migrations/0012_auto_20220626_1402.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Generated by Django 2.1.15 on 2022-06-26 13:02

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
("pokemon_v2", "0011_typeefficacypast"),
]

operations = [
migrations.AlterField(
model_name="itemsprites",
name="sprites",
field=models.CharField(max_length=1000),
),
migrations.AlterField(
model_name="pokemonformsprites",
name="sprites",
field=models.CharField(max_length=1000),
),
]
4 changes: 2 additions & 2 deletions pokemon_v2/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -941,7 +941,7 @@ class ItemGameIndex(HasItem, HasGeneration, HasGameIndex):

class ItemSprites(HasItem):

sprites = models.CharField(max_length=500)
sprites = models.CharField(max_length=1000)


####################
Expand Down Expand Up @@ -1809,7 +1809,7 @@ class PokemonFormName(HasPokemonForm, IsName):

class PokemonFormSprites(HasPokemonForm):

sprites = models.CharField(max_length=500)
sprites = models.CharField(max_length=1000)


class PokemonGameIndex(HasPokemon, HasGameIndex, HasVersion):
Expand Down