From 29f9f0248d4e6905c666e03c7929d1574469f355 Mon Sep 17 00:00:00 2001 From: Saifeddine ALOUI Date: Tue, 30 Apr 2024 09:18:01 +0200 Subject: [PATCH] Update graphviz_execution_engine.py --- utilities/execution_engines/graphviz_execution_engine.py | 1 + 1 file changed, 1 insertion(+) diff --git a/utilities/execution_engines/graphviz_execution_engine.py b/utilities/execution_engines/graphviz_execution_engine.py index bf0ed3c6..6d460970 100644 --- a/utilities/execution_engines/graphviz_execution_engine.py +++ b/utilities/execution_engines/graphviz_execution_engine.py @@ -117,6 +117,7 @@ def execute_graphviz(code, client:Client, message_id, build_file=False): with open(tmp_file,"w",encoding="utf8") as f: f.write(build_graphviz_output(code)["output"]) link = f"{host}:{lollmsElfServer.config.port}/{discussion_path_2_url(tmp_file)}" + execution_time = time.time() - start_time output_json = {"output": f'Page built successfully
Press here to view the page', "execution_time": execution_time} return output_json else: