in backend/training-pipeline/functions/api/hpo.py [0:0]
def get(event, context):
scan_resp = model_table.scan()
print('====scan_resp===')
print(json.dumps(scan_resp, indent=2))
jobs = scan_resp['Items']
sorted_jobs = sorted(jobs, key=lambda x: x['created'], reverse=True)
response = create_response_obj(200, {
'hpos': sorted_jobs
})
return response