MCPcopy Create free account
hub / github.com/CivilHub/CivilHub / load_region_data

Function load_region_data

locations/loader.py:33–75  ·  view source on GitHub ↗

This function takes AdminCode model instance as argument and creates city objects for entire region, excluding city districts. Additionally function takes location made based on region as argument to pass as parent for created cities.

(region, r_location)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

load_country_dataFunction · 0.85

Calls 5

get_translationFunction · 0.85
countMethod · 0.80
getMethod · 0.45
createMethod · 0.45
saveMethod · 0.45

Tested by

no test coverage detected