Skip to content

Commit

Permalink
chore: tidying prints
Browse files Browse the repository at this point in the history
  • Loading branch information
Firgrep committed Aug 14, 2024
1 parent 04ef92c commit f8a49d2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions scripts/prepyrus/src/inserter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ struct InserterOutcome {
}

pub fn process_mdx_files(all_articles: Vec<ArticleFileData>) {
let all_articles_length = all_articles.len();
let mut inserter_outcome = InserterOutcome {
total_articles_processed: 0,
total_bibliographies_inserted: 0,
Expand All @@ -28,8 +29,9 @@ pub fn process_mdx_files(all_articles: Vec<ArticleFileData>) {
process_mdx_file(article, &mut inserter_outcome);
}
println!(
"===Processing OK. Total articles processed: {}. Inserted {} bibliographies, {} authors, and {} notes headings. {} were empty payloads",
"===Processing OK. Total articles processed: {}/{}. Inserted {} bibliographies, {} authors, and {} notes headings. {} were empty payloads",
inserter_outcome.total_articles_processed,
all_articles_length,
inserter_outcome.total_bibliographies_inserted,
inserter_outcome.total_authors_inserted,
inserter_outcome.total_notes_headings_inserted,
Expand Down Expand Up @@ -68,7 +70,7 @@ fn process_mdx_file(article_file_data: ArticleFileData, inserter_outcome: &mut I
Ok(_) => {
inserter_outcome.total_articles_processed += 1;
println!(
"Success! HTML bibliography inserted for {}",
"---Success! HTML bibliography inserted for {}",
article_file_data.path
);
}
Expand Down

0 comments on commit f8a49d2

Please sign in to comment.