liqian vor 1 Jahr
Ursprung
Commit
c2b30d0b63
2 geänderte Dateien mit 1 neuen und 2 gelöschten Zeilen
  1. 1 1
      recommend.py
  2. 0 1
      video_recall.py

+ 1 - 1
recommend.py

@@ -1835,7 +1835,7 @@ def get_recommend_params(recommend_type, ab_exp_info, ab_info_data, mid, app_typ
     flow_pool_abtest_group = 'control_group'
     flow_pool_ab_key = None
     for key, key_items in flow_pool_abtest_config.items():
-        if type(key_items) == 'dict':
+        if isinstance(key_items, dict) is True:
             for ab_key, ab_items in key_items.items():
                 if int(flow_pool_id_choice) in ab_items:
                     flow_pool_abtest_group = key

+ 0 - 1
video_recall.py

@@ -916,7 +916,6 @@ class PoolRecall(object):
         #     'operation': 'flow_pool_recall',
         #     'executeTime': (time.time() - start_time) * 1000
         # })
-
         return flow_pool_recall_result[:size]
 
     def check_video_counts(self, video_ids, flow_pool_mapping):