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();
|
||||
info.app_name = tree.sequence[0]
|
||||
.find_prop("AP")
|
||||
.map(|prop| prop.values[0].clone());
|
||||
info.app_name = tree.root.find_prop("AP").map(|prop| prop.values[0].clone());
|
||||
|
||||
info.game_name = tree.sequence[0]
|
||||
.find_prop("GN")
|
||||
.map(|prop| prop.values[0].clone());
|
||||
info.game_name = tree.root.find_prop("GN").map(|prop| prop.values[0].clone());
|
||||
|
||||
info.black_player = tree.sequence[0]
|
||||
.find_prop("PB")
|
||||
.map(|prop| prop.values.join(", "));
|
||||
info.black_player = tree.root.find_prop("PB").map(|prop| prop.values.join(", "));
|
||||
|
||||
info.black_rank = tree
|
||||
.root
|
||||
|
|
Loading…
Reference in New Issue