Commit 613ae692 authored by Robert Czechowski's avatar Robert Czechowski

Dump list of participations to profile template (unfiltered)

parent 967104a2
Pipeline #745 passed with stage
in 5 minutes and 57 seconds
......@@ -872,6 +872,10 @@ pub fn show_profile<T: MedalConnection>(conn: &T, session_token: &str, user_id:
}
}
}
// TODO: Needs to be filtered
let participations: Vec<(i32, String)> = conn.get_all_participations_complete(session.id).into_iter().map(|(_participation, contest)| (contest.id.unwrap(), contest.name)).collect();
data.insert("ownparticipations".into(), to_json(&participations));
}
Some(user_id) => {
// TODO: Add test to check if this access restriction works
......
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