Merge pull request #727 from LeonEstrak/enhancement_sprites_uri

This commit is contained in:
Alessandro Pezzè 2022-07-20 15:45:33 +02:00 committed by GitHub
commit 635eb57352
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 26 additions and 3 deletions

View file

@ -30,7 +30,7 @@ DB_CURSOR = connection.cursor()
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 = []

View file

@ -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),
),
]

View file

@ -941,7 +941,7 @@ class ItemGameIndex(HasItem, HasGeneration, HasGameIndex):
class ItemSprites(HasItem):
sprites = models.CharField(max_length=500)
sprites = models.CharField(max_length=1000)
####################
@ -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):