Skip to content

Commit

Permalink
impl get specific education
Browse files Browse the repository at this point in the history
  • Loading branch information
16BitNarwhal committed Oct 2, 2024
1 parent c8fa456 commit dcfbad5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@ def education():
Handles education requests
'''
if request.method == 'GET':
index = request.args.get('index', type=int)
if index is not None and 0 <= index < len(data['education']):
return jsonify(data['education'][index])

return jsonify({})

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

0 comments on commit dcfbad5

Please sign in to comment.