diff options
Diffstat (limited to 'src/sync.rs')
-rw-r--r-- | src/sync.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/sync.rs b/src/sync.rs index 974e838..f96d93a 100644 --- a/src/sync.rs +++ b/src/sync.rs @@ -8,7 +8,7 @@ use std::collections::HashMap; use std::collections::HashSet; pub fn run(conn: &mut Connection, deck_path: &str) -> Result<()> { - let db_entries = db::all(conn)?; + let db_entries = db::cards::all(conn)?; let lines = deck::read_file(deck_path)?; let Diff { new, @@ -16,9 +16,9 @@ pub fn run(conn: &mut Connection, deck_path: &str) -> Result<()> { undeleted, } = diff(db_entries, lines); - db::insert(conn, &new)?; - db::delete(conn, &deleted)?; - db::undelete(conn, &undeleted)?; + db::cards::insert(conn, &new)?; + db::cards::delete(conn, &deleted)?; + db::cards::undelete(conn, &undeleted)?; Ok(()) } |