|
|
|
@ -87,7 +87,7 @@ class PointService:
|
|
|
|
house_number=response.get('houseNumber')).values().all()
|
|
|
|
house_number=response.get('houseNumber')).values().all()
|
|
|
|
for house in houses:
|
|
|
|
for house in houses:
|
|
|
|
house.pop('id')
|
|
|
|
house.pop('id')
|
|
|
|
if house.get('doors') and house.get('doors') != 0:
|
|
|
|
if house.get('doors') and house.get('doors') > 1:
|
|
|
|
house['flat_cnt'] = int(house['flat_cnt'] / house['doors'])
|
|
|
|
house['flat_cnt'] = int(house['flat_cnt'] / house['doors'])
|
|
|
|
for _num in range(house['doors']):
|
|
|
|
for _num in range(house['doors']):
|
|
|
|
models.PrePlacementPoint.objects.get_or_create(**house, address=addr,
|
|
|
|
models.PrePlacementPoint.objects.get_or_create(**house, address=addr,
|
|
|
|
|