Refresh data for some recent renames

This commit is contained in:
mtkennerly 2023-12-22 22:32:43 +08:00
parent f25a3a91fe
commit 96ffee28da
No known key found for this signature in database
GPG key ID: E764BE00BE6E6408
6 changed files with 18 additions and 18 deletions

View file

@ -111,7 +111,7 @@ pub async fn run(
steam_cache.transition_states_from(wiki_cache);
steam_cache.refresh(outdated_only, None, limit, steam_from)?;
manifest.refresh(manifest_override, wiki_cache, steam_cache, None)?;
manifest.refresh(manifest_override, wiki_cache, steam_cache)?;
schema::validate_manifest(manifest)?;
}
Subcommand::Solo { local, games } => {
@ -131,7 +131,7 @@ pub async fn run(
steam_cache.refresh(outdated_only, Some(steam_ids), None, None)?;
}
manifest.refresh(manifest_override, wiki_cache, steam_cache, Some(games))?;
manifest.refresh(manifest_override, wiki_cache, steam_cache)?;
schema::validate_manifest(manifest)?;
}
Subcommand::Schema => {

View file

@ -118,17 +118,10 @@ impl Manifest {
overrides: &ManifestOverride,
wiki_cache: &WikiCache,
steam_cache: &SteamCache,
games: Option<Vec<String>>,
) -> Result<(), Error> {
self.0.clear();
for (title, info) in &wiki_cache.0 {
if let Some(games) = &games {
if !games.contains(title) {
continue;
}
}
if overrides.0.get(title).map(|x| x.omit).unwrap_or(false) {
continue;
}