fix: Rendering Result

This commit is contained in:
Alex Wellnitz 2024-09-19 14:55:36 +02:00
parent a18c962b55
commit 76dfcf4554

View File

@ -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):