Commit 5a42d3a7 authored by Robert Czechowski's avatar Robert Czechowski

FIX: Contest export: Use correct field to get teacher OAuth id and teacher school id

parent a00e52af
Pipeline #1177 passed with stages
in 28 minutes and 19 seconds
......@@ -956,8 +956,8 @@ impl MedalConnection for Connection {
points.push(row.get::<_, Option<i32>>(i));
}
let teacher_oauth_and_school_id = row.get::<_, Option<String>>(15);
let (teacher_oauth_id, teacher_school_id) = if let Some(toasi) = teacher_oauth_and_school_id {
let teacher_oauth_and_school_id = row.get::<_, Option<String>>(16);
let (teacher_oauth_id, teacher_school_id) = if let Some(toasi) = teacher_oauth_and_school_id {
let mut v = toasi.split('/');
let oid: Option<String> = v.next().map(|s| s.to_owned());
let sid: Option<String> = v.next().map(|s| s.to_owned());
......
......@@ -1075,8 +1075,8 @@ impl MedalConnection for Connection {
points.push(row.get::<_, Option<i32>>(i));
}
let teacher_oauth_and_school_id = row.get::<_, Option<String>>(15);
let (teacher_oauth_id, teacher_school_id) = if let Some(toasi) = teacher_oauth_and_school_id {
let teacher_oauth_and_school_id = row.get::<_, Option<String>>(16);
let (teacher_oauth_id, teacher_school_id) = if let Some(toasi) = teacher_oauth_and_school_id {
let mut v = toasi.split('/');
let oid: Option<String> = v.next().map(|s| s.to_owned());
let sid: Option<String> = v.next().map(|s| s.to_owned());
......
......@@ -1075,8 +1075,8 @@ impl MedalConnection for Connection {
points.push(row.get::<_, Option<i32>>(i));
}
let teacher_oauth_and_school_id = row.get::<_, Option<String>>(15);
let (teacher_oauth_id, teacher_school_id) = if let Some(toasi) = teacher_oauth_and_school_id {
let teacher_oauth_and_school_id = row.get::<_, Option<String>>(16);
let (teacher_oauth_id, teacher_school_id) = if let Some(toasi) = teacher_oauth_and_school_id {
let mut v = toasi.split('/');
let oid: Option<String> = v.next().map(|s| s.to_owned());
let sid: Option<String> = v.next().map(|s| s.to_owned());
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment