From edb3c9e4d2a2acda5cd82ce719ec984b4f0a601b Mon Sep 17 00:00:00 2001 From: Gabriel Luiz Freitas Almeida Date: Thu, 8 Aug 2024 19:23:02 -0300 Subject: [PATCH] fix: change sync_get_file_content_dicts to use get_file_content_dicts (#3250) feat: refactor sync_get_file_content_dicts to use get_file_content_dicts Refactor the `sync_get_file_content_dicts` method in the `Message` class to use the `get_file_content_dicts` method instead. This change improves the code by using a more descriptive and accurate method name. --- src/backend/base/langflow/schema/message.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/base/langflow/schema/message.py b/src/backend/base/langflow/schema/message.py index bd1c3d848..53d7f0141 100644 --- a/src/backend/base/langflow/schema/message.py +++ b/src/backend/base/langflow/schema/message.py @@ -164,7 +164,7 @@ class Message(Data): return value def sync_get_file_content_dicts(self): - coro = self.aget_file_content_dicts() + coro = self.get_file_content_dicts() loop = asyncio.get_event_loop() return loop.run_until_complete(coro)