|
@@ -2489,15 +2489,15 @@ class PoolRecall(object):
|
|
|
recall_result = []
|
|
|
recall_dict = {}
|
|
|
video_ids = []
|
|
|
- if data is not None:
|
|
|
- json_result = data.split(",")
|
|
|
+ if data is not None and data.strip()!="":
|
|
|
+ json_result = data.strip().split(",")
|
|
|
# print("json_result:", json_result)
|
|
|
for per_item in json_result:
|
|
|
try:
|
|
|
vid = int(per_item)
|
|
|
video_ids.append(vid)
|
|
|
recall_dict[vid] = {'videoId': vid, 'flowPool': '',
|
|
|
- 'rovScore': 0.0, 'pushFrom': config_.PUSH_FROM['sim_hot_vid_recall'],
|
|
|
+ 'rovScore': 0.0, 'pushFrom': config_.PUSH_FROM['w2v_recall'],
|
|
|
'abCode': self.ab_code}
|
|
|
except Exception as e:
|
|
|
continue
|