mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-02 09:35:28 +00:00
cleanup unused constructions, fix tab state for bookmark action
This commit is contained in:
parent
c511b97d2d
commit
fb8f9904d0
8 changed files with 13 additions and 190 deletions
|
|
@ -54,12 +54,7 @@ pub fn select(
|
|||
WHERE `profile_id` = ? AND `request` LIKE ?",
|
||||
)?;
|
||||
|
||||
let filter = match request {
|
||||
Some(value) => value,
|
||||
None => format!("%"),
|
||||
};
|
||||
|
||||
let result = stmt.query_map((profile_id, filter), |row| {
|
||||
let result = stmt.query_map((profile_id, request.unwrap_or("%")), |row| {
|
||||
Ok(Table {
|
||||
id: row.get(0)?,
|
||||
profile_id: row.get(1)?,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue