Skip to content

Commit e1e0bda

Browse files
Stop retrieving date_added
1 parent b6f1586 commit e1e0bda

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/db/file.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,13 +55,12 @@ pub fn get_file_list<P: AsRef<Path>>(path: P) -> Result<Vec<PathBuf>> {
5555
pub struct Blob {
5656
pub path: String,
5757
pub mime: String,
58-
pub date_added: time::Timespec,
5958
pub date_updated: time::Timespec,
6059
pub content: Vec<u8>,
6160
}
6261

6362
pub fn get_path(conn: &Connection, path: &str) -> Option<Blob> {
64-
let rows = conn.query("SELECT path, mime, date_added, date_updated, content
63+
let rows = conn.query("SELECT path, mime, date_updated, content
6564
FROM files
6665
WHERE path = $1", &[&path]).unwrap();
6766

@@ -72,7 +71,6 @@ pub fn get_path(conn: &Connection, path: &str) -> Option<Blob> {
7271
Some(Blob {
7372
path: row.get(0),
7473
mime: row.get(1),
75-
date_added: row.get(2),
7674
date_updated: row.get(3),
7775
content: row.get(4),
7876
})

0 commit comments

Comments
 (0)