From 955ba95eb37ca0996f1d3c6e1df71a1cad26f023 Mon Sep 17 00:00:00 2001 From: Gabriel Luiz Freitas Almeida Date: Wed, 8 Nov 2023 16:05:33 -0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix(store.py):=20fix=20variable?= =?UTF-8?q?=20name=20to=20improve=20code=20readability=20and=20semantics?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The variable `result` is updated with the value of `updated_result` after calling the `update_components_with_user_data` function. This change improves code readability and makes the intention clearer. --- src/backend/langflow/api/v1/store.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/backend/langflow/api/v1/store.py b/src/backend/langflow/api/v1/store.py index 60f3d90f2..38acafdb7 100644 --- a/src/backend/langflow/api/v1/store.py +++ b/src/backend/langflow/api/v1/store.py @@ -115,10 +115,11 @@ def get_components( # Now, from the result, we need to get the components # the user likes and set the liked_by_user to True try: - result = update_components_with_user_data( + updated_result = update_components_with_user_data( result, store_service, store_api_Key ) authorized = True + result = updated_result except Exception: # If we get an error here, it means the user is not authorized authorized = False