|
@@ -173,7 +173,7 @@ def video_recommend(mid, uid, size, top_K, flow_pool_P, app_type, algo_type, cli
|
|
|
pool_recall = PoolRecall(app_type=app_type, mid=mid, uid=uid, ab_code=ab_code,
|
|
|
client_info=client_info, rule_key=rule_key)
|
|
|
_, last_rov_recall_key, _ = pool_recall.get_video_last_idx()
|
|
|
- if ab_code in config_.AB_CODE['rank_by_h']:
|
|
|
+ if ab_code in [code for _, code in config_.AB_CODE['rank_by_h'].items()]:
|
|
|
t = [gevent.spawn(pool_recall.rov_pool_recall_by_h, size, expire_time),
|
|
|
gevent.spawn(pool_recall.flow_pool_recall, size)]
|
|
|
else:
|