Skip to content

Commit

Permalink
Merge #105
Browse files Browse the repository at this point in the history
105: Update ranker r=MikailBag a=MikailBag



Co-authored-by: Mikail Bagishov <[email protected]>
  • Loading branch information
bors[bot] and MikailBag authored Nov 22, 2019
2 parents 7f6018e + b6e9804 commit 5fe7b2f
Show file tree
Hide file tree
Showing 5 changed files with 364 additions and 53 deletions.
39 changes: 39 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/frontend-engine/src/gql_server/monitor.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
use super::prelude::*;
use std::{collections::HashMap, convert::TryInto, num::NonZeroU32};
use std::{collections::BTreeMap, convert::TryInto, num::NonZeroU32};

fn lower_run(r: &db::schema::Run) -> ranker::Run {
let mut subtasks = HashMap::new();
let mut subtasks = BTreeMap::new();
subtasks.insert(ranker::SubtaskId(NonZeroU32::new(1).unwrap()), r.score);
// TODO: properly support subtasks
// TODO: keep party info for runs
Expand Down
4 changes: 4 additions & 0 deletions src/ranker/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,7 @@ edition = "2018"

[dependencies]
serde = { version = "1.0.101", features = ["derive"] }

[dev-dependencies]
pretty_assertions = "0.6.1"
maplit = "1.0.2"
Loading

0 comments on commit 5fe7b2f

Please sign in to comment.