Commit fa820537 authored by Yaowentong's avatar Yaowentong

处理has_goods

parent d26f7bd6
......@@ -1523,7 +1523,7 @@ def result_v2(response_content, data):
quotes = merge_sentiment(sentiment_list, quotes)
# ---------------------------------引用来源-----------------------------
hasGoods = 0
# ---------------------------------结果整合-----------------------------
result = {
"brandVos": brand_words_list_with_rank,
......@@ -1539,6 +1539,7 @@ def result_v2(response_content, data):
"prompt": prompt,
"reqId": reqId,
"sources": quotes,
"hasGoods":hasGoods,
"taskId": taskId,
"totalBrandCount": brand_count_sum,
"totalCompetitorCount": com_count_sum,
......@@ -1559,7 +1560,8 @@ def result_v2(response_content, data):
if sentiment_result:
result['sentiment'] = sentiment_result
if 'render_ecom_card_widget_' in response_content:
result['hasGoods'] = 1
# ---------------------------------结果整合-----------------------------
# ---------------------------------上传结果-----------------------------
......@@ -1972,8 +1974,8 @@ if __name__ == '__main__':
type_t = i.get('type')
# type_t = 'batch'
# commit_task(i,'ING')
return task_send_queue(i,type_t)
# return platform_process(i)
# return task_send_queue(i,type_t)
return platform_process(i)
#
if data_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