|
@@ -60,6 +60,8 @@ class PoolRecall(object):
|
|
|
now_dt = datetime.strftime(now_date, '%Y%m%d')
|
|
|
if self.ab_code in [code for _, code in config_.AB_CODE['region_rank_by_h'].items()]:
|
|
|
key_prefix = f"{config_.RECALL_KEY_NAME_PREFIX_REGION_BY_H}{province_code}."
|
|
|
+ elif self.ab_code in [code for _, code in config_.AB_CODE['rank_by_24h'].items()]:
|
|
|
+ key_prefix = config_.RECALL_KEY_NAME_PREFIX_BY_24H
|
|
|
else:
|
|
|
key_prefix = config_.RECALL_KEY_NAME_PREFIX_BY_H
|
|
|
now_h_recall_key = f"{key_prefix}{self.rule_key}.{now_dt}.{h}"
|
|
@@ -107,6 +109,8 @@ class PoolRecall(object):
|
|
|
# 记录的h - 当前h = 1,判断当前h数据是否已更新
|
|
|
if self.ab_code in [code for _, code in config_.AB_CODE['region_rank_by_h'].items()]:
|
|
|
key_prefix = f"{config_.RECALL_KEY_NAME_PREFIX_REGION_BY_H}{province_code}."
|
|
|
+ elif self.ab_code in [code for _, code in config_.AB_CODE['rank_by_24h'].items()]:
|
|
|
+ key_prefix = config_.RECALL_KEY_NAME_PREFIX_BY_24H
|
|
|
else:
|
|
|
key_prefix = config_.RECALL_KEY_NAME_PREFIX_BY_H
|
|
|
now_h_recall_key = f"{key_prefix}{self.rule_key}.{now_dt}.{h}"
|
|
@@ -579,7 +583,8 @@ class PoolRecall(object):
|
|
|
# abCode = 30001 # 老好看视频 / 票圈最惊奇 首页/相关推荐逻辑更新实验
|
|
|
if self.ab_code in [code for _, code in config_.AB_CODE['rank_by_h'].items()] + \
|
|
|
[code for _, code in config_.AB_CODE['region_rank_by_h'].items()] + \
|
|
|
- [config_.AB_CODE['rov_rank_appType_18_19'], config_.AB_CODE['rov_rank_appType_19']] or \
|
|
|
+ [config_.AB_CODE['rov_rank_appType_18_19'], config_.AB_CODE['rov_rank_appType_19']] + \
|
|
|
+ [code for _, code in config_.AB_CODE['rank_by_24h'].items()] or \
|
|
|
self.app_type == config_.APP_TYPE['APP']:
|
|
|
rov_pool_key, redis_date = self.get_pool_redis_key_with_h('rov')
|
|
|
|
|
@@ -798,6 +803,8 @@ class PoolRecall(object):
|
|
|
if province_code == '':
|
|
|
province_code = '-1'
|
|
|
key_prefix = f"{config_.RECALL_KEY_NAME_PREFIX_DUP_REGION_H}{province_code}."
|
|
|
+ elif self.ab_code in [code for _, code in config_.AB_CODE['rank_by_24h'].items()]:
|
|
|
+ key_prefix = config_.RECALL_KEY_NAME_PREFIX_DUP_24H
|
|
|
else:
|
|
|
key_prefix = config_.RECALL_KEY_NAME_PREFIX_DUP_H
|
|
|
key_name = f"{key_prefix}{self.rule_key}.{now_date}.{h}"
|