From ebe76723fad7e0d55a0c0e01ad074371798093cd Mon Sep 17 00:00:00 2001 From: Remi PLANEL <rplanel@pasteur.fr> Date: Tue, 19 Dec 2023 16:22:51 +0100 Subject: [PATCH] fix bugs --- components/ServerDbTable.vue | 2 +- components/content/StructureDb.vue | 6 +++--- packages/df-wiki-cli/df_wiki_cli/meilisearch/__init__.py | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/components/ServerDbTable.vue b/components/ServerDbTable.vue index c0ffaa00..af1868ab 100644 --- a/components/ServerDbTable.vue +++ b/components/ServerDbTable.vue @@ -132,7 +132,7 @@ const hasPlddt = computed(() => props.db === 'structure') // Fetch results const plddtFilter = computed(() => { const plddtRangeValue = plddtRange.value - if (hasPlddt.value && plddtRangeValue?.length === 2) { + if (hasPlddt.value && plddtRangeValue?.length === 2 && plddtRangeValue[0] !== 0 && plddtRangeValue[1] !== 100) { return `plddts ${plddtRangeValue[0]} TO ${plddtRangeValue[1]}` } else { return undefined diff --git a/components/content/StructureDb.vue b/components/content/StructureDb.vue index 8ef19c3c..6fc5a9c8 100644 --- a/components/content/StructureDb.vue +++ b/components/content/StructureDb.vue @@ -5,10 +5,10 @@ import type { SortItem } from "@/components/ServerDbTable.vue" import { ServerDbTable } from "#components" const sortBy: Ref<SortItem[]> = ref([{ key: 'system', order: "asc" }]) const itemValue = ref("id"); -const facets: Ref<string[]> = ref(["system", "completed"]) +const facets: Ref<string[]> = ref(["system", "completed", "prediction_type", ]) const headers: Ref<Object[]> = ref([ { title: 'Structure', key: 'structure', sortable: false, removable: false }, - { title: "System", key: "system", removable: false }, + { title: "Type", key: "system", removable: false }, // { title: "pdb file", key: "pdb" }, // { title: "fasta", key: "fasta_file" }, { title: "Proteins in structure", key: 'proteins_in_the_prediction', sortable: false, removable: true }, @@ -21,7 +21,7 @@ const headers: Ref<Object[]> = ref([ { title: "pLDDT", key: "plddts", removable: true }, { title: "iptm+ptm", key: "iptm+ptm", removable: true }, { title: "pDockQ", key: "pDockQ", removable: true }, - { title: "Type", key: "type", removable: true }, + // { title: "Type", key: "type", removable: true }, ]) const { search: msSearch, result: msResult } = useMeiliSearch('structure') diff --git a/packages/df-wiki-cli/df_wiki_cli/meilisearch/__init__.py b/packages/df-wiki-cli/df_wiki_cli/meilisearch/__init__.py index 639d80b5..ed3c0031 100644 --- a/packages/df-wiki-cli/df_wiki_cli/meilisearch/__init__.py +++ b/packages/df-wiki-cli/df_wiki_cli/meilisearch/__init__.py @@ -149,7 +149,7 @@ def update_structure( ) print(pagination_settings_task) attr_task = index.update_filterable_attributes( - body=["system", "completed", "plddts", "prediction_type", "completed", "type"] + body=["system", "completed", "prediction_type"] ) params = { "maxValuesPerFacet": 1000000, -- GitLab