apps: get all: remove ezidam inside

This commit is contained in:
Philippe Loctaux 2023-05-08 20:00:49 +02:00
parent a05646a19b
commit 27a6ae9a14
2 changed files with 8 additions and 6 deletions

View file

@ -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(