Skip to content

Commit

Permalink
Update user_routes.py
Browse files Browse the repository at this point in the history
  • Loading branch information
chrissdelaney committed Feb 23, 2024
1 parent 4cadd34 commit de12641
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions web_app/routes/user_routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,11 @@
def courses():
print("USER COURSES...")
current_user = session.get("current_user")
service = current_app.config["SPREADSHEET_SERVICE"]
#...TODO: do work to get courses
return render_template("courses.html")
ss = current_app.config["SPREADSHEET_SERVICE"]

courses = ss.get_student_courses(current_user["email"])

return render_template("courses.html", courses=courses)


"""
Expand Down

0 comments on commit de12641

Please sign in to comment.