Skip to content

Commit

Permalink
Merge pull request #579 from NCATSTranslator/fixTrace
Browse files Browse the repository at this point in the history
Fixing root issue
  • Loading branch information
MarkDWilliams authored Feb 13, 2024
2 parents d3a53d7 + 9ed4d9a commit c87cf54
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tr_sys/tr_ars/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,9 +221,9 @@ def trace_message(req, key):
qc = utils.get_safe(mesg.to_dict(),"fields","data","message","query_graph")
n_merged={}
if mesg.code == 200:
merged_pk = str(mesg.merged_version_id)
logger.info('the last merged pk is %s'% merged_pk)
if merged_pk is not None and merged_pk != 'None':
merged_pk = mesg.merged_version_id
logger.info('the last merged pk is %s'% str(merged_pk))
if merged_pk is not None:
merged_msg = Message.objects.get(pk=merged_pk)
merged_dict = merged_msg.to_dict()
results = utils.get_safe(merged_dict,"fields", "data", "message","results")
Expand Down

0 comments on commit c87cf54

Please sign in to comment.