From 97a44bc38a39e0fc812b500761788520ae0642b1 Mon Sep 17 00:00:00 2001 From: Thierry Date: Wed, 1 Apr 2026 21:31:51 +0200 Subject: [PATCH] Delete services/html_generator.py --- services/html_generator.py | 87 -------------------------------------- 1 file changed, 87 deletions(-) delete mode 100644 services/html_generator.py diff --git a/services/html_generator.py b/services/html_generator.py deleted file mode 100644 index 2924e0a..0000000 --- a/services/html_generator.py +++ /dev/null @@ -1,87 +0,0 @@ -from pathlib import Path -from typing import Optional -from config import EPT_DIR, POTREE_URL -import config - -def generate_viewer_html(pc_id: str, ept_dir: Optional[str], - embed: bool = False, potree_url: Optional[str] = None) -> str: - # Fallback : cherche ept.json si le manifest est absent - if not ept_dir: - out_dir = EPT_DIR / pc_id - ept_json = out_dir / "ept.json" - if ept_json.exists(): - ept_dir = pc_id - else: - return "

Erreur : ept.json introuvable pour cet ID

" - - height_style = "100vh" if embed else "800px" - base_url = "/static/potree" - potree_url = potree_url or config.POTREE_URL - - # L'URL vers ept.json servi via le montage statique /ept_data - ept_json_url = f"/ept_data/{ept_dir}/ept.json" - - return f""" - - - - - EPT Viewer - {pc_id} - - - - - - - - - - - - - - - - - - - - -
-
-
-
- - - -""" \ No newline at end of file