Skip to content
Snippets Groups Projects
Commit ebe76723 authored by Remi  PLANEL's avatar Remi PLANEL
Browse files

fix bugs

parent 69db9143
Branches dev
No related tags found
No related merge requests found
Pipeline #118876 passed with stages
in 11 minutes and 3 seconds
...@@ -132,7 +132,7 @@ const hasPlddt = computed(() => props.db === 'structure') ...@@ -132,7 +132,7 @@ const hasPlddt = computed(() => props.db === 'structure')
// Fetch results // Fetch results
const plddtFilter = computed(() => { const plddtFilter = computed(() => {
const plddtRangeValue = plddtRange.value 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]}` return `plddts ${plddtRangeValue[0]} TO ${plddtRangeValue[1]}`
} else { } else {
return undefined return undefined
......
...@@ -5,10 +5,10 @@ import type { SortItem } from "@/components/ServerDbTable.vue" ...@@ -5,10 +5,10 @@ import type { SortItem } from "@/components/ServerDbTable.vue"
import { ServerDbTable } from "#components" import { ServerDbTable } from "#components"
const sortBy: Ref<SortItem[]> = ref([{ key: 'system', order: "asc" }]) const sortBy: Ref<SortItem[]> = ref([{ key: 'system', order: "asc" }])
const itemValue = ref("id"); 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([ const headers: Ref<Object[]> = ref([
{ title: 'Structure', key: 'structure', sortable: false, removable: false }, { 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: "pdb file", key: "pdb" },
// { title: "fasta", key: "fasta_file" }, // { title: "fasta", key: "fasta_file" },
{ title: "Proteins in structure", key: 'proteins_in_the_prediction', sortable: false, removable: true }, { title: "Proteins in structure", key: 'proteins_in_the_prediction', sortable: false, removable: true },
...@@ -21,7 +21,7 @@ const headers: Ref<Object[]> = ref([ ...@@ -21,7 +21,7 @@ const headers: Ref<Object[]> = ref([
{ title: "pLDDT", key: "plddts", removable: true }, { title: "pLDDT", key: "plddts", removable: true },
{ title: "iptm+ptm", key: "iptm+ptm", removable: true }, { title: "iptm+ptm", key: "iptm+ptm", removable: true },
{ title: "pDockQ", key: "pDockQ", 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') const { search: msSearch, result: msResult } = useMeiliSearch('structure')
......
...@@ -149,7 +149,7 @@ def update_structure( ...@@ -149,7 +149,7 @@ def update_structure(
) )
print(pagination_settings_task) print(pagination_settings_task)
attr_task = index.update_filterable_attributes( attr_task = index.update_filterable_attributes(
body=["system", "completed", "plddts", "prediction_type", "completed", "type"] body=["system", "completed", "prediction_type"]
) )
params = { params = {
"maxValuesPerFacet": 1000000, "maxValuesPerFacet": 1000000,
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment