apps: get all: remove ezidam inside
This commit is contained in:
parent
a05646a19b
commit
27a6ae9a14
2 changed files with 8 additions and 6 deletions
|
|
@ -26,11 +26,16 @@ impl App {
|
|||
conn: impl SqliteExecutor<'_>,
|
||||
filter_get_archived: Option<bool>,
|
||||
) -> Result<Vec<Self>, Error> {
|
||||
Ok(DatabaseApps::get_all(conn, filter_get_archived)
|
||||
let mut apps = DatabaseApps::get_all(conn, filter_get_archived)
|
||||
.await?
|
||||
.into_iter()
|
||||
.map(Self::from)
|
||||
.collect::<Vec<_>>())
|
||||
.collect::<Vec<_>>();
|
||||
|
||||
// Remove ezidam from list
|
||||
apps.retain(|app| *app.id() != AppID("ezidam".into()));
|
||||
|
||||
Ok(apps)
|
||||
}
|
||||
|
||||
pub async fn insert(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue