之前存在106.52上的仓库被重新初始化了,同时增加了测试账号的兼容,测试账号hxbtest001,...hxbtest005
This commit is contained in:
@@ -48,8 +48,8 @@ class MesumAntiqueService(CommonService):
|
||||
# 统一替换中文分号为英文分号,并去除末尾分号
|
||||
if categories_text:
|
||||
categories_text = categories_text.replace(";", ";").rstrip(";")
|
||||
# 分割并清理空格/空值
|
||||
mesum_antique_categories = [dynasty.strip() for dynasty in categories_text.split(";") if dynasty.strip()]
|
||||
# 分割并清理空格/空值
|
||||
mesum_antique_categories = [dynasty.strip() for dynasty in categories_text.split(";") if dynasty.strip()]
|
||||
|
||||
finally:
|
||||
pass
|
||||
@@ -115,7 +115,8 @@ class MesumAntiqueService(CommonService):
|
||||
for obj in query.dicts():
|
||||
labels_data.append({
|
||||
'id': obj['id'],
|
||||
'label': obj['label']
|
||||
'label': obj['label'],
|
||||
"category": obj['category'],
|
||||
})
|
||||
|
||||
return labels_data
|
||||
|
||||
Reference in New Issue
Block a user