|
|
@ -44,7 +44,7 @@ def parse_organizations_to_db(data):
|
|
|
|
for obj in data[k]:
|
|
|
|
for obj in data[k]:
|
|
|
|
OrganizationRepository.create(
|
|
|
|
OrganizationRepository.create(
|
|
|
|
location=LocationRepository.get_or_create(
|
|
|
|
location=LocationRepository.get_or_create(
|
|
|
|
coords=Point(obj['latitude'], obj['longitude']),
|
|
|
|
coords=Point(float(obj['latitude']), float(obj['longitude'])),
|
|
|
|
address=obj['street'] + obj['housenumber']
|
|
|
|
address=obj['street'] + obj['housenumber']
|
|
|
|
),
|
|
|
|
),
|
|
|
|
name=obj['name'],
|
|
|
|
name=obj['name'],
|
|
|
|