chore(deps): update rust crate progenitor to 0.11.0
All checks were successful
Checking Renovate configuration / validate (pull_request) Successful in 1m37s
Build and test / Tests (pull_request) Successful in 1m52s
Build and test / Clippy (pull_request) Successful in 1m52s
Checking yaml / Run yamllint (pull_request) Successful in 3s
Build and test / Build AMD64 (pull_request) Successful in 1m53s
Build and test / Generate Documentation (pull_request) Successful in 1m53s
All checks were successful
Checking Renovate configuration / validate (pull_request) Successful in 1m37s
Build and test / Tests (pull_request) Successful in 1m52s
Build and test / Clippy (pull_request) Successful in 1m52s
Checking yaml / Run yamllint (pull_request) Successful in 3s
Build and test / Build AMD64 (pull_request) Successful in 1m53s
Build and test / Generate Documentation (pull_request) Successful in 1m53s
This commit is contained in:
parent
7ddc1ef26d
commit
47c039cc71
6 changed files with 54 additions and 56 deletions
|
@ -50,7 +50,7 @@ pub async fn auto_create_albums(ctx: Context, separator: String) -> Result<()> {
|
|||
.cloned()
|
||||
.collect();
|
||||
|
||||
info!("Creating missing albums: {:?}", missing_albums);
|
||||
info!("Creating missing albums: {missing_albums:?}");
|
||||
|
||||
for missing_album in &missing_albums {
|
||||
let assets = sorted_assets
|
||||
|
|
|
@ -55,8 +55,7 @@ pub async fn sync_date_of_birth(ctx: Context, vcard_file: &PathBuf) -> Result<()
|
|||
let bday = vcard_date_to_naive_date(dt.value.first().unwrap().clone())?;
|
||||
if c.date_of_birth.as_ref().is_some_and(|bdate| bday == *bdate) {
|
||||
debug!(
|
||||
"{} already has the proper date of birth, skipping",
|
||||
formatted_name
|
||||
"{formatted_name} already has the proper date of birth, skipping"
|
||||
);
|
||||
} else if bday.year() > 0 {
|
||||
UpdatePersonDateOfBirth::new(UpdatePersonDateOfBirthArgs {
|
||||
|
@ -68,8 +67,7 @@ pub async fn sync_date_of_birth(ctx: Context, vcard_file: &PathBuf) -> Result<()
|
|||
updated_dobs += 1;
|
||||
} else {
|
||||
debug!(
|
||||
"{} has an incomplete date of birth, skipping",
|
||||
formatted_name
|
||||
"{formatted_name} has an incomplete date of birth, skipping"
|
||||
);
|
||||
}
|
||||
}
|
||||
|
@ -77,14 +75,14 @@ pub async fn sync_date_of_birth(ctx: Context, vcard_file: &PathBuf) -> Result<()
|
|||
todo!("{}: DateTimeOrTextProperty({})", formatted_name, prop)
|
||||
}
|
||||
},
|
||||
None => debug!("No Immich match for {}", formatted_name),
|
||||
None => debug!("No Immich match for {formatted_name}"),
|
||||
}
|
||||
}
|
||||
None => todo!(),
|
||||
}
|
||||
}
|
||||
|
||||
info!("Updated {} persons", updated_dobs);
|
||||
info!("Updated {updated_dobs} persons");
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue