|  | @@ -8,7 +8,7 @@ log_ = Log()
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  config_ = set_config()
 | 
	
		
			
				|  |  | -def get_featurs(mid, data, size, top_K, flow_pool_P, env_dict=None, video_static_info=None, video_hour_static_info=None, ):
 | 
	
		
			
				|  |  | +def get_featurs(mid, data, size, top_K, flow_pool_P, rec_recall_vid_list, env_dict=None, video_static_info=None, video_hour_static_info=None):
 | 
	
		
			
				|  |  |      feature_dict = {}
 | 
	
		
			
				|  |  |      # defult value
 | 
	
		
			
				|  |  |      apptype = 4
 | 
	
	
		
			
				|  | @@ -73,13 +73,12 @@ def get_featurs(mid, data, size, top_K, flow_pool_P, env_dict=None, video_static
 | 
	
		
			
				|  |  |      day_share_users = []
 | 
	
		
			
				|  |  |      recommendsource_list = []
 | 
	
		
			
				|  |  |      relevant_video_list = []
 | 
	
		
			
				|  |  | -    recall_list = env_dict.get('recall_list', [])
 | 
	
		
			
				|  |  |      city_list = []
 | 
	
		
			
				|  |  |      province_list = []
 | 
	
		
			
				|  |  | -    if recall_list and len(recall_list)>0:
 | 
	
		
			
				|  |  | -        for i in range(len(recall_list)):
 | 
	
		
			
				|  |  | +    if rec_recall_vid_list and len(rec_recall_vid_list)>0:
 | 
	
		
			
				|  |  | +        for i in range(len(rec_recall_vid_list)):
 | 
	
		
			
				|  |  |              mid_list.append(mid)
 | 
	
		
			
				|  |  | -            videoid_list.append(int(recall_list[i]))
 | 
	
		
			
				|  |  | +            videoid_list.append(rec_recall_vid_list[i])
 | 
	
		
			
				|  |  |              apptype_list.append(apptype)
 | 
	
		
			
				|  |  |              pagesource_list.append(pagesource)
 | 
	
		
			
				|  |  |              versioncode_list.append(versioncode)
 | 
	
	
		
			
				|  | @@ -119,7 +118,7 @@ def get_featurs(mid, data, size, top_K, flow_pool_P, env_dict=None, video_static
 | 
	
		
			
				|  |  |                                            day_share_pv_list, day_share_return_score_list, day_share_score_list,
 | 
	
		
			
				|  |  |                                            day_share_users, day_view_pv_list, day_view_users_list)
 | 
	
		
			
				|  |  |      else:
 | 
	
		
			
				|  |  | -        for i in range(len(recall_list)):
 | 
	
		
			
				|  |  | +        for i in range(len(rec_recall_vid_list)):
 | 
	
		
			
				|  |  |              insert_static_default_fea(day_ctr_score_list, day_play_pv_list, day_play_users_list,
 | 
	
		
			
				|  |  |                                        day_return_rate_list, day_return_users_list, day_rov_list,
 | 
	
		
			
				|  |  |                                        day_share_pv_list, day_share_return_score_list, day_share_score_list,
 | 
	
	
		
			
				|  | @@ -153,7 +152,7 @@ def get_featurs(mid, data, size, top_K, flow_pool_P, env_dict=None, video_static
 | 
	
		
			
				|  |  |                      hour_return_rate_list.append(0.0)
 | 
	
		
			
				|  |  |                      hour_ctr_score_list.append(0.0)
 | 
	
		
			
				|  |  |      else:
 | 
	
		
			
				|  |  | -        for i in range(len(recall_list)):
 | 
	
		
			
				|  |  | +        for i in range(len(rec_recall_vid_list)):
 | 
	
		
			
				|  |  |              hour_rov_list.append(0.0)
 | 
	
		
			
				|  |  |              hour_share_return_score_list.append(0.0)
 | 
	
		
			
				|  |  |              hour_share_score_list.append(0.0)
 |