Commit 0bcdd7b1 authored by 李小芳's avatar 李小芳

get_highlight_v2

parent e3135f43
......@@ -1129,7 +1129,7 @@ class Answer(models.Model):
r = get_current_rpc_invoker()
try:
res_list = []
result = r['pims/catalog/usertags/ids2tag'](ids=ids).unwrap()
result = r['pims/catalog/usertags/ids2tag'](ids=list(ids)).unwrap()
res_list = result.get("result", [])
except Exception:
return []
......
......@@ -328,7 +328,7 @@ class Tractate(models.Model):
r = get_current_rpc_invoker()
try:
res_list = []
result = r['pims/catalog/usertags/ids2tag'](ids=ids).unwrap()
result = r['pims/catalog/usertags/ids2tag'](ids=list(ids)).unwrap()
logging.info("get result:%s", result)
res_list = result.get("result", [])
except :
......
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