Skip to content

Commit

Permalink
update route
Browse files Browse the repository at this point in the history
  • Loading branch information
juancwu committed Nov 24, 2024
1 parent fb933f8 commit 34c837f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion backend/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -983,7 +983,8 @@ async def get_notes_progress(course_id: int, current_user: User = Depends(get_cu
notes = []
for page in pages:
note = db.query(models.Note).filter(models.Note.student_id == current_user.id and models.Note.page_id == page.id).first()
notes.append(note)
if note is not None:
notes.append({"page_id": page.id, "note": note.content})
return { "notes": notes }

@app.post("/quizzes/{quiz_id}/review/feedback")
Expand Down

0 comments on commit 34c837f

Please sign in to comment.