File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,8 @@ def correct_message(text):
2626
2727@require_logged_in
2828def 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
3738def 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 )
You can’t perform that action at this time.
0 commit comments