From a5576d96166fccc1fa12a45cf74d7fa8ae4a704e Mon Sep 17 00:00:00 2001 From: Vinicius de Andrade Date: Wed, 11 Sep 2024 16:40:12 -0300 Subject: [PATCH] Altera campo de ID usado na consulta do DeCS Highlighter. #1457 --- bireme/utils/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bireme/utils/views.py b/bireme/utils/views.py index 243ea09c..2dcf8bb9 100644 --- a/bireme/utils/views.py +++ b/bireme/utils/views.py @@ -256,7 +256,7 @@ def decs_suggestion(request): decs_list_response = response_json['positions'] for decs_term in decs_list_response: - decs_id = decs_term['id'] + decs_id = str(int(decs_term['decsId'])) if decs_id not in decs_ids: decs_ids.append(decs_id) decs_list_unique.append(decs_term)