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

get_highlight_v2

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