From 7b238b44e74f7985d7faa1d4cf3e2684dc2a2f38 Mon Sep 17 00:00:00 2001 From: Gabriel Luiz Freitas Almeida Date: Thu, 6 Jul 2023 15:25:05 -0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=80=20chore(base.py):=20update=20=5Fbu?= =?UTF-8?q?ilt=5Fobject=5Frepr=20method=20to=20include=20emojis=20and=20mo?= =?UTF-8?q?re=20descriptive=20messages=20The=20=5Fbuilt=5Fobject=5Frepr=20?= =?UTF-8?q?method=20in=20the=20Vertex=20class=20has=20been=20updated=20to?= =?UTF-8?q?=20include=20emojis=20and=20more=20descriptive=20messages.=20Th?= =?UTF-8?q?e=20message=20"Built=20successfully=20=E2=9C=A8"=20is=20now=20r?= =?UTF-8?q?eturned=20when=20the=20=5Fbuilt=5Fobject=20attribute=20is=20Tru?= =?UTF-8?q?e,=20indicating=20that=20the=20object=20has=20been=20successful?= =?UTF-8?q?ly=20built.=20On=20the=20other=20hand,=20the=20message=20"Faile?= =?UTF-8?q?d=20to=20build=20=F0=9F=98=B5=E2=80=8D=F0=9F=92=AB"=20is=20retu?= =?UTF-8?q?rned=20when=20the=20=5Fbuilt=5Fobject=20attribute=20is=20False,?= =?UTF-8?q?=20indicating=20that=20the=20object=20failed=20to=20build.=20Th?= =?UTF-8?q?is=20change=20improves=20the=20clarity=20and=20visual=20represe?= =?UTF-8?q?ntation=20of=20the=20build=20status.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/backend/langflow/graph/vertex/base.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/backend/langflow/graph/vertex/base.py b/src/backend/langflow/graph/vertex/base.py index 67fd4e005..9a11ff6a7 100644 --- a/src/backend/langflow/graph/vertex/base.py +++ b/src/backend/langflow/graph/vertex/base.py @@ -226,4 +226,5 @@ class Vertex: return id(self) def _built_object_repr(self): - return "Built sucessfully" if self._built_object else "Not built yet" + # Add a message with an emoji, stars for sucess, + return "Built sucessfully ✨" if self._built_object else "Failed to build 😵‍💫"