Commit b7d859e3 authored by 李小芳's avatar 李小芳

get_highlight_v2

parent 8360ae92
...@@ -300,7 +300,7 @@ def get_tractate(pks): ...@@ -300,7 +300,7 @@ def get_tractate(pks):
item["operate_tags_v4"] = list(tagv4) item["operate_tags_v4"] = list(tagv4)
data.append(item) data.append(item)
logging.info("get data:%s" % data) # logging.info("get data:%s" % data)
return data return data
except: except:
logging.error("catch exception,logins:%s" % traceback.format_exc()) logging.error("catch exception,logins:%s" % traceback.format_exc())
......
...@@ -329,7 +329,7 @@ class Tractate(models.Model): ...@@ -329,7 +329,7 @@ class Tractate(models.Model):
try: try:
res_list = [] res_list = []
result = r['pims/catalog/usertags/ids2tag'](ids=ids).unwrap() result = r['pims/catalog/usertags/ids2tag'](ids=ids).unwrap()
print("result",result) logging.info("get result:%s", result)
res_list = result.get("result", []) res_list = result.get("result", [])
except Exception: except Exception:
return [] return []
......
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