Skip to main content

pair_pages

Function pair_pages 

Source
async fn pair_pages(
    conn: &mut PgConnection,
    view: &CourseView,
    pairings: &BTreeMap<Uuid, Uuid>,
    page_language_groups: &HashMap<Uuid, Uuid>,
    after: &mut CourseState,
) -> Result<(), ToolError>
Expand description

Puts each new page of pairings (new page id to the page it translates) into the page language group of the page it translates, which publishing joins. Refuses a page of a course outside this course’s language group, one not published yet, and a group that already has a page in this course.