From e3edc54d64ac50756cb73db661ce9366bc728007 Mon Sep 17 00:00:00 2001 From: Gabriel Luiz Freitas Almeida Date: Thu, 2 May 2024 12:56:57 -0300 Subject: [PATCH] Refactor get_id_from_search_string function to convert UUID to string in service.py --- src/backend/base/langflow/services/store/service.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/base/langflow/services/store/service.py b/src/backend/base/langflow/services/store/service.py index 4e557fcf4..c6205269a 100644 --- a/src/backend/base/langflow/services/store/service.py +++ b/src/backend/base/langflow/services/store/service.py @@ -64,7 +64,7 @@ def get_id_from_search_string(search_string: str) -> Optional[str]: possible_id = search_string.split("/")[-1] try: - possible_id = UUID(search_string) + possible_id = str(UUID(search_string)) except ValueError: possible_id = None return possible_id