Robert Williams
c843a67a00
fixing linter issue
2024-02-09 23:30:52 -06:00
Robert Williams
12db174d1e
that line was needed after all
2024-02-03 22:02:23 -06:00
Robert Williams
8f9fd71aa6
removing unnecessary line
2024-02-03 21:56:25 -06:00
Robert Williams
ccd44796c4
fixing a debugging print line
2024-02-02 17:06:36 -06:00
Robert Williams
e0a877be9b
Updating MoveDetailSerializer to change $effect_chance to actual number
2024-02-02 15:16:58 -06:00
FallenDeity
4828b93860
style: Run black formatter on source
2024-02-03 00:32:51 +05:30
FallenDeity
02baf0b3ef
feat: ✨ Add pokemon cries
...
Add pokemon cries resource field to pokemon endpoint
2024-02-03 00:15:39 +05:30
FallenDeity
545e1a0826
feat: Add showdown field to pokemon api resource
2023-12-16 09:56:19 +05:30
Naramsim
b348e60d2c
refactor: merge migrations
2023-11-30 04:09:39 +01:00
Simón Oroño
b3d6608283
Fix tests for sprites
...
Moved the declaration of sprite_data variables closer to their actual
usage.
2023-11-26 11:57:16 -04:00
Simón Oroño
61c21853ef
Fix serializers for ItemSprites and PokemonFormSprites
2023-11-26 11:57:16 -04:00
Simón Oroño
76f7a340e6
Use JSONField instead of CharField for sprites
...
The models affected were PokemonFormSprites and ItemSprites. This was
done to ensure they are properly returned when querying those tables
with Hasura.
2023-11-26 11:57:16 -04:00
Simón Oroño
db33cfc1a4
Format missing files
2023-11-26 11:57:16 -04:00
Simón Oroño
d1e2d9c5b4
Use new JSON field in Django instead of Postgres custom one
2023-11-26 11:57:16 -04:00
Simón Oroño
30e8a01253
Format migration 0014_auto_20231119_0303.py
2023-11-26 11:57:16 -04:00
Simón Oroño
49d970f0ed
Remove unused serializer class PokemonSpritesSerializer
2023-11-26 11:57:16 -04:00
Simón Oroño
6ff2c0c217
Fix serialization of pokemon sprites
2023-11-26 11:57:16 -04:00
Simón Oroño
218864dfbc
Make the type of the sprites
column in pokemon_v2_pokemonsprites jsonb
...
This is so Hasura automatically transforms the field into an array
instead of a JSON encoded in a string.
Migration was generated by the `makemigrations` command.
2023-11-26 11:57:16 -04:00
Naramsim
8ba6f94c0c
refactor/fix: format/sprite test
2023-11-08 11:11:56 +01:00
Naramsim
5237c4ccc9
refactor: format with new black
2023-11-08 10:44:55 +01:00
Naramsim
3fa2b6952f
fix: don't add or replace parts of the sprites' URL
2023-11-08 10:22:56 +01:00
Alessandro Pezzè
f46af79d58
Merge branch 'master' into Add-previous-abilities
2023-10-02 12:14:57 +02:00
Derrick Maina
c37d48a049
fixed a typo in docs
2023-06-15 12:45:20 +03:00
Ryan Voice
a301ca48ec
Update tests
2023-02-27 10:19:36 -08:00
Ryan Voice
6787cdd62e
format autogenerated migration
2023-02-27 08:10:09 -08:00
Ryan Voice
3d0c4b1953
Remove manual graphql updates
...
- Remove manual graphql updates
- autogen abilitypast migration
2023-02-27 08:02:55 -08:00
Ryan Voice
7af0acf677
fix formatting
2023-02-16 15:53:48 -08:00
Ryan Voice
fb893e4177
Add previous ability data structure
2023-02-16 15:18:04 -08:00
Aniket Chakraborty
c7dd432bbf
Linting changes on auto-generated files
...
Signed-off-by: Aniket Chakraborty <aniket2583@gmail.com>
2022-06-26 19:20:07 +05:30
Aniket Chakraborty
28354a973c
Updated Sprite URL
...
Previously the sprite endpoint returned the relative path of
the image with a /media/ prefix which was not useful for API consumer.
Now it returns a URL pointing to the image present in github.com/PokeApi/Sprites.
Signed-off-by: Aniket Chakraborty <aniket2583@gmail.com>
2022-06-26 19:01:55 +05:30
Julian Lawrance
206af8a6fd
Remove order column from Generation model and use ID column instead
2021-07-19 19:00:40 +01:00
Julian Lawrance
d8dfd24e43
Amend test_type_api to check for past type relations only including extant types
2021-07-16 22:50:32 +01:00
Julian Lawrance
07c502f498
Determine whether a newer type should be present in a past type efficacy relations set based on generation order rather than ID
2021-07-16 22:32:34 +01:00
Julian Lawrance
0d9bc4f2b9
Run formatter
2021-07-16 22:32:06 +01:00
Julian Lawrance
1173b43ad1
Add order field to Generation model
2021-07-16 22:29:55 +01:00
Julian Lawrance
8b9e4f171c
Merge remote-tracking branch 'upstream/master' into feature/past-type-efficacy
2021-07-14 22:23:11 +01:00
Julian Lawrance
596c9f85fb
Remove newer types from past type efficacy relation lists
2021-07-14 21:14:20 +01:00
fissionprime
68745ace03
old variable
2021-07-06 01:13:28 -04:00
fissionprime
f17a09b15f
reformatted with black
2021-07-06 00:58:55 -04:00
fissionprime
1ae3964a5f
fixed 'possible_values' field of characteristic endpoint
...
loop that adds values to 'possible_values' used wrong value in conditional. Created test to verify behavior is as expected.
2021-07-05 21:10:39 -04:00
Julian Lawrance
2445fc4792
Regenerate DB migration for past type efficacies
2021-02-24 15:37:00 +00:00
Julian Lawrance
44f14a0118
Merge remote-tracking branch 'upstream/master' into feature/past-type-efficacy
2021-02-24 13:41:20 +00:00
Julian Lawrance
9a03a7da42
Merge branch 'feature/pokemon-form-types' of https://github.com/phrasmotica/pokeapi into feature/pokemon-form-types
2021-02-19 14:33:54 +00:00
Julian Lawrance
49072e9c45
Format source code
2021-02-19 14:25:39 +00:00
Julian Lawrance
85027ff7f9
Populate Pokemon form types field with types from parent Pokemon if the form has no types of its own
2021-02-19 14:25:14 +00:00
Julian Lawrance
d48e51686c
Recreate Pokemon form type DB migration
2021-02-19 14:24:33 +00:00
Julian Lawrance
bbc8cbdf2b
Merge remote-tracking branch 'origin' into feature/pokemon-form-types
2021-02-18 20:36:13 +00:00
Julian Lawrance
eabd20988d
Update README Type model example response with Ghost type data
2021-02-13 22:43:26 +00:00
Julian Lawrance
10fec5ad1c
Recreate past type efficacy data migration
2021-02-13 22:33:39 +00:00
Julian Lawrance
0aeb047677
Merge branch 'master' into feature/past-type-efficacy
2021-02-13 22:22:41 +00:00
Julian Lawrance
1e30dac6ea
Change README Pokemon form example response to that of Arceus' bug form
2021-02-13 21:50:42 +00:00
Julian Lawrance
6d9a020cb2
Update Pokemon form docs in README
2021-02-13 21:18:59 +00:00
Julian Lawrance
535ba86f71
Re-create new migration for Pokemon form types
2021-02-13 20:44:50 +00:00
Julian Lawrance
a159550aed
Merge remote-tracking branch 'upstream/master' into feature/pokemon-form-types
2021-02-13 18:51:47 +00:00
Julian Lawrance
39856de97b
Format source code again
2021-02-06 22:15:12 +00:00
Julian Lawrance
c513fa5b56
Recreate past types migration again
2021-02-06 22:03:47 +00:00
Julian Lawrance
91f39138bd
Format source code
2021-02-06 22:02:36 +00:00
Julian L
c273a42f98
Merge branch 'master' into past-pokemon-types
2021-02-06 21:56:50 +00:00
Julian Lawrance
76ba2ae00e
Format source code
2021-02-06 21:52:36 +00:00
Julian Lawrance
55f77c2fdd
Remove unnecessary differences with master branch
2021-02-06 21:48:29 +00:00
Julian Lawrance
a988e6d936
Regenerate Pokemon past types migration
2021-02-06 21:32:13 +00:00
Julian Lawrance
6ce7ca413d
Merge branch 'master' into past-pokemon-types
2021-02-06 21:29:40 +00:00
Simón Oroño
d99a8bb87e
Make linter happy
2021-01-26 19:44:54 -04:00
Simón Oroño
87a2590543
Rename field in move endpoint
...
Field "pokemon" was renamed "learned_by_pokemon" to better express intent.
2021-01-26 19:42:28 -04:00
Simón Oroño
7c7beb4592
Add a "pokemon" field for the move endpoint
...
This field will contain a simple list of pokemon summaries. Each
element on the list represents a pokemon that can learn that move.
2021-01-23 13:22:37 -04:00
Tim Gates
5e2aeab47b
docs: fix simple typo, rsult -> result
...
There is a small typo in pokemon_v2/README.md.
Should read `result` rather than `rsult`.
2020-12-28 12:36:09 +11:00
Alessandro Pezzè
464aeea4af
fix: run black
2020-11-23 22:05:49 +01:00
Alessandro Pezzè
71d75c3540
feat: extend pokemon_name to 60 char
2020-11-23 21:57:30 +01:00
Alessandro Pezzè
a131421889
Update and rename 0006_auto_20200815_0610.py to 0007_auto_20200815_0610.py
2020-08-15 21:43:23 +02:00
Alessandro Pezzè
7dcc930d79
fix(lint): remove spaces
2020-08-15 21:39:11 +02:00
Alessandro Pezzè
b2c381a89e
Merge branch 'master' into master
2020-08-15 21:32:56 +02:00
Raghav Nair
25e026cc6a
Removing ultrabeast column and only updating is_legendary and is_mythical
2020-08-14 22:14:09 -07:00
Alessandro Pezzè
8c10abd909
refactor: merge migrations
...
:
2020-08-11 19:33:12 +02:00
Raghav Nair
d13b2f3b7d
Formatting
2020-08-09 16:15:21 -07:00
Raghav Nair
60b3e6aa4d
Adding migrations
2020-08-09 12:43:06 -07:00
Raghav Nair
8c82794a04
Using black to format tests file
2020-08-09 12:41:24 -07:00
Raghav Nair
99dabe387c
Updating PokemonSpecies serializer, fields, tests
2020-08-09 12:35:45 -07:00
Alessandro Pezzè
7ceba2f1b1
refactor: apply black
2020-08-01 12:24:38 +02:00
Alessandro Pezzè
047575ff41
play: add some pokemon
2020-08-01 12:00:09 +02:00
Alessandro Pezzè
47044317e4
add migration
2020-07-25 22:14:00 +02:00
Alessandro Pezzè
bf02891d1e
Update models.py
2020-07-25 21:52:01 +02:00
Christian Garza
f44da153fb
Fix linting errors
2020-07-10 02:59:05 -07:00
Christian Garza
a14271a67a
Extend pokemon sprites to include dream-world images from submodule
2020-07-09 23:58:11 -07:00
Christian Garza
20c5d31be4
Increase max length for PokemonSprites
2020-07-09 23:25:48 -07:00
Andrés Ignacio Torres
6f1479d21c
prevent server error on invalid numeric id lookup
2020-05-03 09:02:07 -04:00
Julian Lawrance
d983f29543
Add tests for Pokemon form types
2020-04-25 14:25:00 +01:00
Julian Lawrance
98d67b19ed
Create model, serialiser and migration for Pokemon form types
2020-04-25 14:10:50 +01:00
Julian Lawrance
fee75ea61d
Address PR comments
2020-04-21 23:30:23 +01:00
Julian Lawrance
4f8a9258f9
Add test for Wurmple evolution chain fix
2020-04-13 20:07:43 +01:00
Julian Lawrance
a3ed4f035c
Serialize evolution chains recursively to fix Wurmple evolution
2020-04-13 14:14:48 +01:00
Paul Hallett
867fd9c23a
blacked
2020-02-24 13:18:14 +13:00
Paul Hallett
d5d55dad7f
Autoformat entire project, tidy up makefile
2020-02-24 13:18:14 +13:00
Alessandro Pezzè
c7e10bd044
feat: address new max length for iso639
2020-02-23 23:58:13 +01:00
Julian Lawrance
0dac8286f7
Add past type efficacy information to README
2019-12-01 13:12:17 +00:00
Julian Lawrance
0c73b169e5
Cast QuerySets to lists before joining them together
2019-12-01 12:53:22 +00:00
Julian Lawrance
81b890b7cc
Fix typo in variable name
2019-12-01 12:53:00 +00:00
Julian Lawrance
bb99158a6c
Create tests for past type efficacy
2019-12-01 12:42:20 +00:00
Julian Lawrance
6db08df656
Use add_type_entry() in get_type_relationships()
2019-12-01 12:42:00 +00:00
Julian Lawrance
2524b48c56
Create serialiser for past type efficacy
2019-12-01 12:41:28 +00:00
Julian Lawrance
044fcde8ee
Create DB model and migration for past type efficacy
2019-12-01 12:38:51 +00:00