From 420dd2f754f30ff5fbc3fc15ee1f5ef1d4a0408c Mon Sep 17 00:00:00 2001
From: Remi  PLANEL <rplanel@pasteur.fr>
Date: Fri, 22 Dec 2023 15:02:56 +0100
Subject: [PATCH] use System column

---
 components/content/StructureDb.vue                       | 6 +++---
 data/all_predictions_statistics_clean.csv                | 4 ++--
 packages/df-wiki-cli/df_wiki_cli/meilisearch/__init__.py | 4 +++-
 3 files changed, 8 insertions(+), 6 deletions(-)

diff --git a/components/content/StructureDb.vue b/components/content/StructureDb.vue
index 89f9919c..e12e202c 100644
--- a/components/content/StructureDb.vue
+++ b/components/content/StructureDb.vue
@@ -6,12 +6,12 @@ import { useNumericalFilter } from "@/composables/useNumericalfilter"
 
 
 import { ServerDbTable } from "#components"
-const sortBy: Ref<SortItem[]> = ref([{ key: 'System_name_ok', order: "asc" }])
+const sortBy: Ref<SortItem[]> = ref([{ key: 'System', order: "asc" }])
 const itemValue = ref("id");
-const facets: Ref<string[]> = ref(["System_name_ok", "subtype", "gene_name", "completed", "prediction_type",])
+const facets: Ref<string[]> = ref(["System", "subtype", "gene_name", "completed", "prediction_type",])
 const headers: Ref<Object[]> = ref([
     { title: 'Structure', key: 'structure', sortable: false, removable: false },
-    { title: "System", key: "System_name_ok", removable: false },
+    { title: "System", key: "System", removable: false },
     { title: "Gene name", key: "gene_name", removable: false },
     { title: "Subtype", key: "subtype", removable: false },
     // { title: "pdb file", key: "pdb" },
diff --git a/data/all_predictions_statistics_clean.csv b/data/all_predictions_statistics_clean.csv
index 9f94c93f..b3d56f12 100644
--- a/data/all_predictions_statistics_clean.csv
+++ b/data/all_predictions_statistics_clean.csv
@@ -1,3 +1,3 @@
 version https://git-lfs.github.com/spec/v1
-oid sha256:06b71ce99c8f6ac46771abb62e028168a0975717acff4c4d68dd783d896a84ed
-size 583535
+oid sha256:adca1ecd58e622b16610a4c1a731f63c87e0e65b9d58ba3f3f7a6adb14a612f2
+size 598918
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 48229937..92f3a29e 100644
--- a/packages/df-wiki-cli/df_wiki_cli/meilisearch/__init__.py
+++ b/packages/df-wiki-cli/df_wiki_cli/meilisearch/__init__.py
@@ -46,6 +46,7 @@ NaFloat = Annotated[Optional[float], BeforeValidator(na_to_none)]
 class StrucutreStatistics(BaseModel):
     id: int
     System_name_ok: str
+    System: str
     gene_name: str
     subtype: str
     proteins_in_the_prediction: List[str]
@@ -153,7 +154,7 @@ def update_structure(
     print(pagination_settings_task)
     attr_task = index.update_filterable_attributes(
         body=[
-            "System_name_ok",
+            "System",
             "gene_name",
             "subtype",
             "completed",
@@ -173,6 +174,7 @@ def update_structure(
     index.update_sortable_attributes(
         [
             "System_name_ok",
+            "System",
             "gene_name",
             "subtype",
             "completed",
-- 
GitLab