Commit graph

75 commits

Author SHA1 Message Date
gabe
e885e3fa62
feat: add new sprites field to type
via adding `TypeSprites` to db containing type name icons from all games
(excluding tera types, for now)
2024-07-28 22:28:09 -04: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
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
d1e2d9c5b4 Use new JSON field in Django instead of Postgres custom one 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
5237c4ccc9 refactor: format with new black 2023-11-08 10:44:55 +01: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
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
1173b43ad1 Add order field to Generation model 2021-07-16 22:29:55 +01: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
bbc8cbdf2b Merge remote-tracking branch 'origin' into feature/pokemon-form-types 2021-02-18 20:36:13 +00:00
Julian Lawrance
0aeb047677 Merge branch 'master' into feature/past-type-efficacy 2021-02-13 22:22:41 +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 L
c273a42f98
Merge branch 'master' into past-pokemon-types 2021-02-06 21:56:50 +00:00
Julian Lawrance
6ce7ca413d Merge branch 'master' into past-pokemon-types 2021-02-06 21:29:40 +00:00
Alessandro Pezzè
71d75c3540 feat: extend pokemon_name to 60 char 2020-11-23 21:57:30 +01: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
Raghav Nair
99dabe387c Updating PokemonSpecies serializer, fields, tests 2020-08-09 12:35:45 -07:00
Alessandro Pezzè
047575ff41 play: add some pokemon 2020-08-01 12:00:09 +02:00
Alessandro Pezzè
bf02891d1e
Update models.py 2020-07-25 21:52:01 +02:00
Christian Garza
20c5d31be4 Increase max length for PokemonSprites 2020-07-09 23:25:48 -07:00
Julian Lawrance
98d67b19ed Create model, serialiser and migration for Pokemon form types 2020-04-25 14:10:50 +01: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
044fcde8ee Create DB model and migration for past type efficacy 2019-12-01 12:38:51 +00:00
Julian Lawrance
1d9e41d100 Create DB model and migration for past Pokemon types 2019-11-30 20:49:39 +00:00
Charles Marttinen
63b4f9040b chore: Configure PyLint and correct code formatting 2018-10-20 11:35:11 -04:00
Charles Marttinen
4df9920596 chore: Correct code formatting to appease linter 2018-10-20 11:35:11 -04:00
Charles Marttinen
7714b745a3 fix: Update flake8 and pyflake 2018-10-20 11:35:11 -04:00
Charles Marttinen
8832c819e3 chore: Remove python2 compatibility code 2018-10-20 11:35:11 -04:00
Charles Marttinen
ee96433e6d chore: Update Django to 1.9 2018-10-20 11:35:11 -04:00
Paul Hallett
4919c0674d DB index, improve Pokemon performance (#194)
* DB index, improve Pokemon performance

* fix test

* blep
2016-05-30 14:58:03 +01:00
phalt
341b635332 Linting for the entire project 2016-03-05 09:27:25 +00:00
Zane Adickes
77c69889e1 clean merge 2016-02-25 00:02:51 -05:00
Paul Hallett
c9661531b0 Merge pull request #79 from zaneadix/New-Data
updated data with all of latest veekun updates
2016-02-23 10:06:21 +00:00
Zane Adickes
ec58b95478 images implemented for pokmon, pokemon forms and items 2016-02-16 01:31:19 -05:00
Zane Adickes
fdcfae9c5c merge with phalt 2016-02-12 23:44:08 -05:00
Zane Adickes
396bbd45ae adding some images 2016-02-10 08:09:36 -05:00
Zane Adickes
399643aa87 get started 2016-02-09 23:11:37 -05:00
Zane Adickes
d6ca4a3f60 had a stash mistake on the last push. this should be a complete push 2016-01-26 21:09:44 -05:00
Zane Adickes
d0909e1cc3 updated data with all of latest veekun updates 2015-12-28 00:00:14 -05:00
Adickes
3d8e9a7649 tests now handling all convenience attributes in all apis 2015-11-26 02:18:35 +01:00
Adickes
1f480cedac tests covering all endpoints. working on adding some convenience attributes to api resources to help connect them two way style. tests will probably need some small tweaks 2015-11-15 22:29:30 -05:00
Adickes
75e39ba530 cleaned up the berry mess 2015-11-10 14:20:06 -05:00