From ceb0c8f2080e1d77dbc49c67e5f380f033e62a09 Mon Sep 17 00:00:00 2001 From: Andria Capai Date: Wed, 31 Jan 2024 14:26:39 +0100 Subject: [PATCH] refact: sort label well formated in frontend Reviewed-by: andriac --- backend/geonature/core/imports/routes/imports.py | 3 --- .../imports/components/import_list/import-list.component.html | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/backend/geonature/core/imports/routes/imports.py b/backend/geonature/core/imports/routes/imports.py index 2f073e85f2..4b3e52831c 100644 --- a/backend/geonature/core/imports/routes/imports.py +++ b/backend/geonature/core/imports/routes/imports.py @@ -81,9 +81,6 @@ def get_import_list(scope, destination=None): sort_dir = request.args.get("sort_dir", default="desc", type=str) filters = [] - if sort == "dest_label": - sort = "destination.label" - if search: filters.append(TImports.full_file_name.ilike(f"%{search}%")) filters.append( diff --git a/frontend/src/app/modules/imports/components/import_list/import-list.component.html b/frontend/src/app/modules/imports/components/import_list/import-list.component.html index 8e7ec1f328..34579bd1ae 100644 --- a/frontend/src/app/modules/imports/components/import_list/import-list.component.html +++ b/frontend/src/app/modules/imports/components/import_list/import-list.component.html @@ -63,7 +63,7 @@
Liste des imports
- +

{{row.destination.code}}