|
|
|
|
@ -361,9 +361,9 @@ class PrePlacementPointViewSet(PlacementPointViewSet):
|
|
|
|
|
@action(detail=False, methods=['post'])
|
|
|
|
|
def start_matching(self, request):
|
|
|
|
|
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()
|
|
|
|
|
#raschet('service_preplacementpoint')
|
|
|
|
|
raschet('service_preplacementpoint')
|
|
|
|
|
return Response(
|
|
|
|
|
{'message': {'total': total, 'matched': matched, 'error': problem, 'unmatched': total - matched - problem}},
|
|
|
|
|
status=HTTPStatus.OK,
|
|
|
|
|
|