baoyubo 1 週間 前
コミット
f457a73bc7
1 ファイル変更22 行追加22 行削除
  1. 22 22
      routers/api/videoResource/videoinfo.py

+ 22 - 22
routers/api/videoResource/videoinfo.py

@@ -40,28 +40,28 @@ def read_all_regions(parent_id:str = '0',db: Session = Depends(get_db)):
                 isShowSelect1=False
             if info.indexCode=='84021e2f6eba4e6b8ccc7d750fb833fa':
                 continue
-
-            if info.indexCode=='root00000000':
-                region_list = parent_id_get_region_info('root00000000')
-                children = []
-                for chil in region_list:
-                    isShowSelect = True
-                    if parent_id_get_region_info(chil.indexCode):
-                        isShowSelect = False
-                    if chil.indexCode == '84021e2f6eba4e6b8ccc7d750fb833fa':
-                        continue
-
-                    children.append({'id': chil.indexCode,
-                                 'label': chil.name,
-                                 'isShowSelect': isShowSelect
-                                 })
-                data.append({'id': info.indexCode,
-                             'label': info.name,
-                             'isShowSelect': isShowSelect1,
-                             'children': children
-                             })
-            else:
-                data.append({'id': info.indexCode,
+            #
+            # if info.indexCode=='root00000000':
+            #     region_list = parent_id_get_region_info('root00000000')
+            #     children = []
+            #     for chil in region_list:
+            #         isShowSelect = True
+            #         if parent_id_get_region_info(chil.indexCode):
+            #             isShowSelect = False
+            #         if chil.indexCode == '84021e2f6eba4e6b8ccc7d750fb833fa':
+            #             continue
+            #
+            #         children.append({'id': chil.indexCode,
+            #                      'label': chil.name,
+            #                      'isShowSelect': isShowSelect
+            #                      })
+            #     data.append({'id': info.indexCode,
+            #                  'label': info.name,
+            #                  'isShowSelect': isShowSelect1,
+            #                  'children': children
+            #                  })
+            # else:
+            data.append({'id': info.indexCode,
                              'label': info.name,
                              'isShowSelect': isShowSelect1
                              })