mirror of
https://github.com/PokeAPI/pokeapi
synced 2024-11-10 14:14:17 +00:00
One function for each group of models¬
NOT TESTED YET! Buildscript has not finished yet (needed about 18h until now). Made `data/v2/__init__.py` and `config/local.py` python3 compatible. Writen helper functions because of repeating code: + `process_csv` + `build_generic` useage demonstrated with `_build_languages`. Writen `with_iter` for closing files automatical when the processing has finished. Writen for each group of models a function (named `build_`groupname) and a function `build_all` which calls these functions.
This commit is contained in:
parent
ea0d5c7ab3
commit
5e5854fb7b
3 changed files with 1709 additions and 1646 deletions
|
@ -1,4 +1,4 @@
|
|||
from settings import *
|
||||
from .settings import *
|
||||
|
||||
DATABASES = {
|
||||
'default': {
|
||||
|
|
|
@ -1 +1 @@
|
|||
from build import *
|
||||
from .build import *
|
||||
|
|
3351
data/v2/build.py
3351
data/v2/build.py
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue