Fix merge errors
This commit is contained in:
parent
4bd6388913
commit
b9425af234
|
@ -104,17 +104,11 @@ impl TryFrom<Tree> for Game {
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
let mut info = GameInfo::default();
|
let mut info = GameInfo::default();
|
||||||
info.app_name = tree.sequence[0]
|
info.app_name = tree.root.find_prop("AP").map(|prop| prop.values[0].clone());
|
||||||
.find_prop("AP")
|
|
||||||
.map(|prop| prop.values[0].clone());
|
|
||||||
|
|
||||||
info.game_name = tree.sequence[0]
|
info.game_name = tree.root.find_prop("GN").map(|prop| prop.values[0].clone());
|
||||||
.find_prop("GN")
|
|
||||||
.map(|prop| prop.values[0].clone());
|
|
||||||
|
|
||||||
info.black_player = tree.sequence[0]
|
info.black_player = tree.root.find_prop("PB").map(|prop| prop.values.join(", "));
|
||||||
.find_prop("PB")
|
|
||||||
.map(|prop| prop.values.join(", "));
|
|
||||||
|
|
||||||
info.black_rank = tree
|
info.black_rank = tree
|
||||||
.root
|
.root
|
||||||
|
|
Loading…
Reference in New Issue