Compare commits
2 Commits
3a209ba1d8
...
a418858755
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a418858755 | ||
| d42ed445d8 |
@ -121,7 +121,10 @@ async fn update_game(
|
|||||||
|
|
||||||
let mut r_existing = None;
|
let mut r_existing = None;
|
||||||
|
|
||||||
if let Some(existing) = games.iter_mut().find(|g| g.title == game.title) {
|
if let Some(existing) = games.iter_mut().find(|g| {
|
||||||
|
(g.remote_id == game.remote_id && g.source == game.source) || (g.title == game.title)
|
||||||
|
}) {
|
||||||
|
existing.title = game.title.clone();
|
||||||
existing.source = game.source;
|
existing.source = game.source;
|
||||||
existing.min_players = game.min_players;
|
existing.min_players = game.min_players;
|
||||||
existing.max_players = game.max_players;
|
existing.max_players = game.max_players;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user