Skip to content

Commit 85d6db2

Browse files
committed
fix docstrings for dialog
1 parent 64eb0ca commit 85d6db2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

ennead/views/dialogue.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ def correct_message(text):
2626

2727
@require_logged_in
2828
def thread_page(task_id: int, student_id: int) -> Response:
29-
"""GET /thread/{task}/{student}: show student's thread for a specified task"""
29+
"""GET /thread/{task}/{student}: show specified thread"""
30+
3031
if not has_access_to_thread(student_id):
3132
return redirect(url_for('index'))
3233
thread = get_thread(task_id, student_id)
@@ -35,6 +36,8 @@ def thread_page(task_id: int, student_id: int) -> Response:
3536

3637
@require_logged_in
3738
def post_to_thread(task_id: int, student_id: int) -> Response:
39+
"""POST /thread/{task}/{student}: send a message to a specified thread"""
40+
3841
if not has_access_to_thread(student_id):
3942
return redirect(url_for('index'))
4043
thread = get_thread(task_id, student_id)

0 commit comments

Comments
 (0)