Commit 8aebfc26 authored by lixiaofang's avatar lixiaofang

add

parent 74a5dd9f
......@@ -16,7 +16,7 @@ from trans2es.models.pictorial import PictorialTopics
class ProductUtils(object):
@classmethod
def get_product_sku(cls, query='', offset=0, size=10, sort_type='', filters={}):
def get_product_sku(cls, query='', offset=0, size=10, filters={}):
try:
multi_fields = {
'cn_name_pre': 2,
......
......@@ -24,7 +24,7 @@ def product_hot_sort(query='', offset=0, size=10, filters={}):
:return:
'''
try:
res = ProductUtils.get_product_sku(query=query, offset=offset, size=size, sort_type=sort_type, filters=filters)
res = ProductUtils.get_product_sku(query=query, offset=offset, size=size, filters=filters)
product_list = []
res_hit = res["hits"]
......
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