Update public source

This commit is contained in:
2026-10-11 09:17:44 +03:00
parent 6832b085ca
commit dfe5270ee3
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -69,7 +69,7 @@ from .sessions import (
# ============================================================ # ============================================================
def format_session_folder(capture_file): def format_session_folder(capture_file):
if not capture_file: if not capture_file or not str(capture_file).startswith("captures/"):
return "-" return "-"
folder = Path(capture_file).parent.name folder = Path(capture_file).parent.name
+2 -2
View File
@@ -2607,7 +2607,7 @@ def render_session_page(
html = page_begin( html = page_begin(
f"Session {format_session_folder(Path(session['capture_file']).parent.name)}", f"Session {format_session_folder(Path(session['capture_file']).parent.name) if session.get('origin') == 'Local capture' else '-'}",
active="capture_sessions", active="capture_sessions",
@@ -2653,7 +2653,7 @@ Capture started:
Session folder: Session folder:
{esc(Path(session["capture_file"]).parent.name)} {esc(Path(session["capture_file"]).parent.name if session.get("origin") == "Local capture" else "-")}
""" """