Commit e592f6d9 authored by 高雅喆's avatar 高雅喆

bug fix

parent bb20c24e
......@@ -348,9 +348,10 @@ def get_topic_and_pictorial_detail_for_debug(device_id="", underexposure_lin_top
linucb_topic_results.update({str(topic_id): {"id": topic_id, "content_level": content_level,
"edit_tags": edit_tag_name_score_list}})
# logging.info("linucb_topic:{}".format(linucb_topic_results))
underexposure_lin_topic_results = {k: v for k, v in linucb_topic_results if
underexposure_lin_topic_results = {k: v for k, v in linucb_topic_results.items() if
k in underexposure_lin_topic_ids}
exposure_lin_topic_results = {k: v for k, v in linucb_topic_results if k in linucb_topic_id_list}
exposure_lin_topic_results = {k: v for k, v in linucb_topic_results.items() if
k in linucb_topic_id_list}
if len(rank_topic_id_list) > 0:
rank_topic_dict = TopicUtils.get_linucb_topic_info_for_debug(len(rank_topic_id_list),
linucb_topic_list=rank_topic_id_list)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment