Merge branch 'fix_1' into 'dev'

delete_preplacement_fix

See merge request spatial/postamates!107
dev
Aleksandr Popov 2 years ago
commit e4d5369447

@ -361,9 +361,9 @@ class PrePlacementPointViewSet(PlacementPointViewSet):
@action(detail=False, methods=['post']) @action(detail=False, methods=['post'])
def start_matching(self, request): def start_matching(self, request):
file_id = request.POST['id'] file_id = request.POST['id']
total, matched, problem = 0,0,0#PointService().start_mathing(file_id) total, matched, problem = PointService().start_mathing(file_id)
PointService.make_enrichment() PointService.make_enrichment()
#raschet('service_preplacementpoint') raschet('service_preplacementpoint')
return Response( return Response(
{'message': {'total': total, 'matched': matched, 'error': problem, 'unmatched': total - matched - problem}}, {'message': {'total': total, 'matched': matched, 'error': problem, 'unmatched': total - matched - problem}},
status=HTTPStatus.OK, status=HTTPStatus.OK,

Loading…
Cancel
Save