Browse Source

去掉black

guanhailong 2 years ago
parent
commit
479f273682
2 changed files with 1 additions and 7 deletions
  1. 0 6
      .pre-commit-config.yaml
  2. 1 1
      Controller/DeviceTypeController.py

+ 0 - 6
.pre-commit-config.yaml

@@ -5,12 +5,6 @@ repos:
     hooks:
       - id: isort
 
-    # 自动格式化
-  - repo: https://github.com/psf/black
-    rev: 22.3.0
-    hooks:
-      - id: black
-
     # 清理未使用代码
   - repo: https://github.com/PyCQA/autoflake
     rev: v2.1.1

+ 1 - 1
Controller/DeviceTypeController.py

@@ -97,7 +97,7 @@ class DeviceTypeView(View):
         """
         app_bundle_id = request_dict.get('app_bundle_id', None)
         if not app_bundle_id:
-            return response.json(444, {'error param': 'app_bundle_id'})
+            app_bundle_id = 'com.ansjer.zccloud_a'
         try:
             lang = response.lang
             app_device_qs = DeviceNameLanguage.objects.filter(lang=lang)