feat: hide python-ml

This commit is contained in:
loks0n
2024-04-05 15:31:43 +01:00
parent a95d1ed38d
commit e2dd89338f
@@ -2,10 +2,11 @@ import { page } from '$app/stores';
import { derived } from 'svelte/store';
import type { Models } from '@appwrite.io/console';
export const runtimesList = derived(
page,
async ($page) => (await $page.data.runtimesList) as Models.RuntimeList
);
export const runtimesList = derived(page, async ($page) => {
const { runtimes } = (await $page.data.runtimes) as Models.RuntimeList;
const filtered = runtimes.filter((runtime) => !runtime.name.startsWith('python-ml'));
return { runtimes: filtered, total: filtered.length };
});
export const baseRuntimesList = derived(runtimesList, async ($runtimesList) => {
const baseRuntimes = new Map<string, Models.Runtime>();