Browse Source

250311-2代码。

baoyubo 3 months ago
parent
commit
f652bdbed7
1 changed files with 2 additions and 1 deletions
  1. 2 1
      routers/api/videoResource/videoinfo.py

+ 2 - 1
routers/api/videoResource/videoinfo.py

@@ -487,7 +487,8 @@ async def get_video_forest_fire_list(
             :param paths: 包含层级路径的列表
             :return: 树形结构的字典
             """
-        video_code_list = [item[0] for item in db.query(TpVideoTag.id).filter(TpVideoTag.dict_value == '4').all()]
+        video_code_list = [item[0] for item in db.query(TpVideoTag.video_code).filter(TpVideoTag.dict_value == 'slfh').all()]
+        # print(video_code_list)
         video_list = db.query(TpVideoLog).filter(TpVideoLog.video_code.in_(video_code_list)).all()
         root = {"label": "Root", "children": [],"online":0,"total":0}  # 创建根节点