Skip to content

Commit

Permalink
Merge pull request #110 from materials-data-facility/dev
Browse files Browse the repository at this point in the history
Include original submission in status response
  • Loading branch information
BenGalewsky authored Feb 1, 2024
2 parents 365930e + 541a02c commit 9895770
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions aws/status.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,12 @@ def lambda_handler(event, context):

print(status_rec)

print(automate_manager.get_log(status_rec['action_id']))
result ={
"original_submission": json.loads(status_rec['original_submission']),
"flow_status":automate_manager.get_status(status_rec['action_id'])
}

return {
'statusCode': 200,
'body': json.dumps(automate_manager.get_status(status_rec['action_id']))
'body': json.dumps(result)
}

0 comments on commit 9895770

Please sign in to comment.