MCPcopy
hub / github.com/PokeAPI/pokeapi / _build_growth_rates

Function _build_growth_rates

data/v2/build.py:434–447  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

432
433
434def _build_growth_rates():
435 def csv_record_to_objects(info):
436 yield GrowthRate(id=int(info[0]), name=info[1], formula=info[2])
437
438 build_generic((GrowthRate,), "growth_rates.csv", csv_record_to_objects)
439
440 def csv_record_to_objects(info):
441 yield GrowthRateDescription(
442 growth_rate_id=int(info[0]), language_id=int(info[1]), description=info[2]
443 )
444
445 build_generic(
446 (GrowthRateDescription,), "growth_rate_prose.csv", csv_record_to_objects
447 )
448
449
450# ###########

Callers 1

build_allFunction · 0.85

Calls 1

build_genericFunction · 0.85

Tested by

no test coverage detected