Merge branch 'ml_to_task' into 'dev'

ml_to_celery

See merge request spatial/postamates!103
dev
Timofey Malinin 2 years ago
commit 36a49be5ef

@ -363,7 +363,7 @@ class PrePlacementPointViewSet(PlacementPointViewSet):
file_id = request.POST['id']
total, matched, problem = PointService().start_mathing(file_id)
PointService.make_enrichment()
raschet('service_preplacementpoint')
raschet.delay('service_preplacementpoint')
return Response(
{'message': {'total': total, 'matched': matched, 'error': problem, 'unmatched': total - matched - problem}},
status=HTTPStatus.OK,

Loading…
Cancel
Save