Browse Source

update video_rank

linfan 1 year ago
parent
commit
fc83758366
1 changed files with 1 additions and 1 deletions
  1. 1 1
      video_rank.py

+ 1 - 1
video_rank.py

@@ -722,7 +722,7 @@ def video_sanke_rank(data, size, top_K, flow_pool_P, ab_Code=''):
             hot_recall = sorted(data['hot_recall'], key=lambda k: k.get('rovScore', 0), reverse=True)
             recall_dict['hot_recall'] = hot_recall
     elif ab_Code==60059:
-        if len(data['w2v_recall']>0):
+        if len(data['w2v_recall'])>0:
            w2v_recall = sorted(data['w2v_recall'], key=lambda k: k.get('rovScore', 0), reverse=True)
            recall_dict['w2v_recall'] = w2v_recall