From 76dfcf4554b35725a0122077b42ed6d14fa68619 Mon Sep 17 00:00:00 2001 From: Alex Wellnitz Date: Thu, 19 Sep 2024 14:55:36 +0200 Subject: [PATCH] fix: Rendering Result --- main.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.py b/main.py index 47f5ea2..4c48a44 100644 --- a/main.py +++ b/main.py @@ -45,10 +45,10 @@ def simulate_current_gear(simcprofile: Annotated[str, Form()]): .add_args(html_export) .run()) - response = read_file_with_lru_cache(export_path) - remove_temp_files(profile_path, export_path) + # response = FileResponse(export_path) + # remove_temp_files(profile_path, export_path) - return HTMLResponse(response) + return FileResponse(export_path) # HELPER Functions def create_profile(profile_path: str, profile_data: str):