mirror of
https://github.com/PokeAPI/pokeapi
synced 2024-11-14 15:57:07 +00:00
Merge pull request #727 from LeonEstrak/enhancement_sprites_uri
This commit is contained in:
commit
635eb57352
3 changed files with 26 additions and 3 deletions
|
@ -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 = []
|
||||
|
||||
|
|
23
pokemon_v2/migrations/0012_auto_20220626_1402.py
Normal file
23
pokemon_v2/migrations/0012_auto_20220626_1402.py
Normal 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),
|
||||
),
|
||||
]
|
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue