Skip to content

Instantly share code, notes, and snippets.

@rippinrobr
Last active May 24, 2018 22:20
Show Gist options
  • Save rippinrobr/3e44d4ddb32620b45567eb5433f2bfcd to your computer and use it in GitHub Desktop.
Save rippinrobr/3e44d4ddb32620b45567eb5433f2bfcd to your computer and use it in GitHub Desktop.
Getting all of the links from the 'seed' page
if _matches.is_present("get-links") {
WikiRepo::get_page_links(&c, title.to_string(), |link| {
match db::add_link_process(&conn, &link) {
Err(e) => println!("SAVE ERROR: {} {}", e ,link.title),
Ok(_) => println!("Added: {}", link.title)
};
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment