Skip to content

Commit

Permalink
Implement API route to return all Experiences updated
Browse files Browse the repository at this point in the history
  • Loading branch information
axsseldz committed Oct 2, 2024
1 parent 3a65afe commit 09cba22
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,7 @@ def experience():
Handle experience requests
'''
if request.method == 'GET':
experiences = {}
for idx, exp in enumerate(data['experience']):
experiences[str(idx)] = exp.__dict__
experiences = [exp.__dict__ for exp in data['experience']]
return jsonify(experiences)

if request.method == 'POST':
Expand Down

0 comments on commit 09cba22

Please sign in to comment.