Commit d7c72dac authored by rico.liu's avatar rico.liu

update zol attribute no relationship deal

parent 884784c4
......@@ -37,9 +37,14 @@ class CRAWLER:
获取ZOL参数对应关系
'''
try:
zol_rel_data = pd.DataFrame()
cursor = self.conn.cursor()
cursor.execute("SELECT * FROM Product_Relation_Attribute_SubTitle where ZI_SubCategoryCode = '"+zgc_category_code+"' and Source = 'ZOL'")
data_source = [v for v in cursor.fetchall()]
try:
data_source = [v for v in cursor.fetchall()]
except:
print(str(zgc_category_code) + " 该类别产品参数项无zol对应关系")
return zol_rel_data
zol_rel_data = pd.DataFrame(data_source,columns=[tuple[0] for tuple in cursor.description])
cursor.close()
......
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