perf: 去掉 debug msg

This commit is contained in:
ibuler
2023-04-20 22:32:22 +08:00
committed by Jiangjie.Bai
parent 48b3699591
commit 7127b2da93
4 changed files with 3 additions and 4 deletions

View File

@@ -3,6 +3,7 @@ from rest_framework.decorators import action
from rest_framework.response import Response
from common.api import JMSGenericViewSet
from common.permissions import IsValidUser
from assets.serializers import CategorySerializer, TypeSerializer
from assets.const import AllTypes
@@ -14,7 +15,7 @@ class CategoryViewSet(ListModelMixin, JMSGenericViewSet):
'default': CategorySerializer,
'types': TypeSerializer
}
permission_classes = ()
permission_classes = (IsValidUser,)
def get_queryset(self):
return AllTypes.categories()

View File

@@ -40,7 +40,6 @@ def get_platform_automation_methods(path):
continue
with open(path, 'r') as f:
print("path: ", path)
manifest = yaml_load_with_i18n(f)
check_platform_method(manifest, path)
manifest['dir'] = os.path.dirname(path)