feat: equipment的导入3
This commit is contained in:
parent
6dddf17980
commit
b765e87517
|
@ -11,6 +11,7 @@ from rest_framework.serializers import Serializer
|
|||
from django.db import transaction
|
||||
from apps.em.services import daoru_equipment
|
||||
from rest_framework.response import Response
|
||||
from django.conf import settings
|
||||
|
||||
# Create your views here.
|
||||
|
||||
|
@ -34,7 +35,7 @@ class EquipmentViewSet(CustomModelViewSet):
|
|||
|
||||
导入
|
||||
"""
|
||||
daoru_equipment(request.data.get('path', None))
|
||||
daoru_equipment(settings.BASE_DIR + request.data.get('path', ''))
|
||||
return Response()
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue