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

Function _build_regions

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

Source from the content-addressed store, hash-verified

187
188
189def _build_regions():
190 def csv_record_to_objects(info):
191 yield Region(id=int(info[0]), name=info[1])
192
193 build_generic((Region,), "regions.csv", csv_record_to_objects)
194
195 def csv_record_to_objects(info):
196 yield RegionName(region_id=int(info[0]), language_id=int(info[1]), name=info[2])
197
198 build_generic((RegionName,), "region_names.csv", csv_record_to_objects)
199
200
201################

Callers 1

build_allFunction · 0.85

Calls 1

build_genericFunction · 0.85

Tested by

no test coverage detected