fix an introduced bug
This commit is contained in:
parent
74e9b164c5
commit
b20b138ea5
|
@ -203,7 +203,7 @@ impl Database for SqliteDatabase {
|
|||
fn entry_query(&self, query: &str, params: &[&dyn ToSql]) -> Result<Vec<Entry>> {
|
||||
let mut stmt = self.connection.prepare(query)?;
|
||||
|
||||
let x = stmt.query_and_then(params, |row| {
|
||||
let entries = stmt.query_and_then(params, |row| {
|
||||
let id: u64 = row.get("id")?;
|
||||
let note = row.get("note")?;
|
||||
let sheet = row.get("sheet")?;
|
||||
|
@ -214,7 +214,7 @@ impl Database for SqliteDatabase {
|
|||
col: "start".into(),
|
||||
}
|
||||
})?;
|
||||
let end = row.get("start").map_err(|_| {
|
||||
let end = row.get("end").map_err(|_| {
|
||||
Error::InvalidTimeInDatabase {
|
||||
id: id.to_string(),
|
||||
col: "start".into(),
|
||||
|
@ -226,7 +226,7 @@ impl Database for SqliteDatabase {
|
|||
})
|
||||
})?.collect();
|
||||
|
||||
x
|
||||
entries
|
||||
}
|
||||
|
||||
fn meta_query(&self, query: &str, params: &[&dyn ToSql]) -> Result<Vec<Meta>> {
|
||||
|
|
Loading…
Reference in New Issue