Skip to content

Commit

Permalink
expose run info from deal library run
Browse files Browse the repository at this point in the history
  • Loading branch information
yellowbean committed Jul 23, 2023
1 parent c6116f7 commit d497516
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions absbox/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,12 +241,13 @@ def lookupReader(x):
case _:
raise RuntimeError(f"Failed to match reader:{x}")
try:
result = json.loads(result)
#_result = json.loads(result)
ri = result['run_info']
result = result['run_result']
console.print(f"✅[bold green]run success with deal id={ri['deal_id']}/report num={ri['report_num']},doc_id={ri['doc_id']}")
except Exception as e:
console.print(f"❌[bold red]message from API server:{result}")
return None

console.print(f"✅[bold green]run success")
try:
classReader = lookupReader(p['reader'])
if read and isinstance(result,list):
Expand Down

0 comments on commit d497516

Please sign in to comment.