Skip to content

Commit

Permalink
Merge pull request #635 from NCATSTranslator/mesg-ars-infores
Browse files Browse the repository at this point in the history
added ref to ?trace=y
  • Loading branch information
ShervinAbd92 authored Jun 12, 2024
2 parents cff3449 + 7f269ba commit 441602e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tr_sys/tr_ars/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ def trace_message(req, key):
'code': int(merged_msg.code),
'actor': {
'pk': merged_msg.actor_id,
'inforesid': merged_msg.actor.inforesid,
'inforesid': 'infores:ars',
'agent': merged_msg.actor.agent.name
},
'children': []
Expand All @@ -257,6 +257,10 @@ def trace_message(req, key):
'merged_versions_list':str(mesg.merged_versions_list),
'children': []
}
if mesg.ref_id is not None:
tree['ref']=str(mesg.ref_id)
else:
tree['ref']=None
if n_merged:
tree['children'].append(n_merged)
trace_message_deepfirst(tree)
Expand Down

0 comments on commit 441602e

Please sign in to comment.