tidy up indentation part 3
This commit is contained in:
parent
59f292bc1e
commit
fec8d09693
|
@ -251,7 +251,6 @@ fn torrent_search(
|
||||||
// `sort_key` and `sort_dir` are already sanitized and should not be escaped:
|
// `sort_key` and `sort_dir` are already sanitized and should not be escaped:
|
||||||
let stmt_str = format!("select * from torrents where name like '%' || ?1 || '%' order by {} {} limit ?2, ?3", sort_key, sort_dir);
|
let stmt_str = format!("select * from torrents where name like '%' || ?1 || '%' order by {} {} limit ?2, ?3", sort_key, sort_dir);
|
||||||
let mut stmt = conn.prepare(&stmt_str)?;
|
let mut stmt = conn.prepare(&stmt_str)?;
|
||||||
|
|
||||||
let torrent_iter = stmt.query_map(
|
let torrent_iter = stmt.query_map(
|
||||||
params![
|
params![
|
||||||
query.replace(" ", "%"),
|
query.replace(" ", "%"),
|
||||||
|
@ -269,7 +268,7 @@ fn torrent_search(
|
||||||
completed: row.get(6)?,
|
completed: row.get(6)?,
|
||||||
scraped_date: row.get(7)?,
|
scraped_date: row.get(7)?,
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
)?;
|
)?;
|
||||||
|
|
||||||
let mut torrents = Vec::new();
|
let mut torrents = Vec::new();
|
||||||
|
|
Loading…
Reference in New Issue