From 43cb952435eda80c1005dcd4c13e1d0e880c58a7 Mon Sep 17 00:00:00 2001 From: Alex Wellnitz Date: Sat, 21 Sep 2024 10:35:41 +0200 Subject: [PATCH] refactor(backend): removed unused functions --- backend/main.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/backend/main.py b/backend/main.py index 09ebe1d..1a5f235 100644 --- a/backend/main.py +++ b/backend/main.py @@ -40,7 +40,6 @@ app.add_middleware( ) app.mount("/_next", StaticFiles(directory="templates/_next"), name="static") -app.mount("/_next/image", StaticFiles(directory="templates/_next"), name="static") app.mount("/img", StaticFiles(directory="templates/img"), name="static") # ROUTES @@ -66,9 +65,6 @@ def simulate_current_gear(simcprofile: Annotated[str, Form()]): .add_args(html_export) .run()) - # response = FileResponse(export_path) - # remove_temp_files(profile_path, export_path) - return FileResponse(export_path) # HELPER Functions @@ -91,11 +87,6 @@ def create_sim_arguments(profile_data: str): return profile_path -def remove_temp_files(profile_path: str, export_path: str): - time.sleep(1) - os.remove(export_path) - os.remove(profile_path) - @functools.lru_cache(maxsize=2) def read_file_with_lru_cache(file_path): # Read the file content