-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Testing for teachers when making exams #1244
Conversation
…s-when-making-exams
…s-when-making-exams
…s-when-making-exams
let started_at = Utc::now(); | ||
exams::update_exam_start_time(&mut conn, *exam_id, user.id, started_at).await?; | ||
|
||
crate::prelude::models::exercise_slide_submissions::delete_exercise_submissions_with_exam_id_and_user_id(&mut conn, *exam_id, user.id).await?; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
crate::prelude::models::exercise_slide_submissions::delete_exercise_submissions_with_exam_id_and_user_id(&mut conn, *exam_id, user.id).await?; | |
models::exercise_slide_submissions::delete_exercise_submissions_with_exam_id_and_user_id(&mut conn, *exam_id, user.id).await?; |
let exam = payload.0; | ||
let token = authorize( | ||
&mut tx, | ||
Act::CreateCoursesOrExams, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Act::CreateCoursesOrExams, | |
Act::Edit, |
models::exams::edit( | ||
&mut tx, | ||
*exam_id, | ||
Some(exam.name.as_str()), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pass the NewExam struct here directly
@@ -54,7 +54,11 @@ const ExamList: React.FC<React.PropsWithChildren<Props>> = ({ | |||
<li key={exam.id}> | |||
<a href={`/org/${organizationSlug}/exams/${exam.id}`}>{exam.name}</a> | |||
<br /> | |||
<a href={`/manage/exams/${exam.id}`}>{t("manage")}</a> | |||
<a | |||
href={`/manage/exams/${exam.id}?org-slug=${organizationSlug}&org-id=${organizationId}`} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no
No description provided.