Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
nygrenh committed Jan 24, 2025
1 parent d6670d7 commit 8aafc6c
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 17 deletions.
5 changes: 1 addition & 4 deletions services/headless-lms/models/src/exercise_task_gradings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -237,10 +237,7 @@ where id = $1
)
.fetch_one(conn)
.await?;
Ok(CourseOrExamId::from_course_and_exam_ids(
res.course_id,
res.exam_id,
)?)
CourseOrExamId::from_course_and_exam_ids(res.course_id, res.exam_id)
}

pub async fn new_grading(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -239,10 +239,7 @@ WHERE ets.id = $1
)
.fetch_one(conn)
.await?;
Ok(CourseOrExamId::from_course_and_exam_ids(
res.course_id,
res.exam_id,
)?)
CourseOrExamId::from_course_and_exam_ids(res.course_id, res.exam_id)
}

pub async fn get_peer_reviews_received(
Expand Down
5 changes: 1 addition & 4 deletions services/headless-lms/models/src/exercise_tasks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -153,10 +153,7 @@ WHERE id = (
)
.fetch_one(conn)
.await?;
Ok(CourseOrExamId::from_course_and_exam_ids(
res.course_id,
res.exam_id,
)?)
CourseOrExamId::from_course_and_exam_ids(res.course_id, res.exam_id)
}

pub async fn get_exercise_task_by_id(
Expand Down
5 changes: 1 addition & 4 deletions services/headless-lms/models/src/pages.rs
Original file line number Diff line number Diff line change
Expand Up @@ -410,10 +410,7 @@ WHERE id = $1
)
.fetch_one(conn)
.await?;
Ok(CourseOrExamId::from_course_and_exam_ids(
res.course_id,
res.exam_id,
)?)
CourseOrExamId::from_course_and_exam_ids(res.course_id, res.exam_id)
}

pub enum PageVisibility {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use anyhow::Result;
use bytes::Bytes;

use futures::TryStreamExt;
use headless_lms_models::{course_instances, user_exercise_states};
use headless_lms_models::user_exercise_states;

use async_trait::async_trait;

Expand Down

0 comments on commit 8aafc6c

Please sign in to comment.