Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/KonferCA/Meta-Hack
Browse files Browse the repository at this point in the history
  • Loading branch information
AmirAgassi committed Nov 24, 2024
2 parents 4a68d30 + 2195dac commit 796a6d6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions backend/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -977,6 +977,11 @@ async def enroll_in_course(

return {"message": "Successfully enrolled in course"}

@app.get("/course/{course_id}/notes")
async def get_notes_progress(course_id: int, current_user: User = Depends(get_current_user), db: Session = Depends(get_db)):
items = db.query(models.Page).filter(models.Page.course_id == course_id).join(models.Note.student_id == current_user.id and models.Page.course_id == course_id).all()
return { "items": items }

@app.post("/quizzes/{quiz_id}/review/feedback")
async def submit_review_feedback(
quiz_id: int,
Expand Down

0 comments on commit 796a6d6

Please sign in to comment.