diff --git a/app.py b/app.py index 82eeed0..d832380 100644 --- a/app.py +++ b/app.py @@ -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':