Update public source
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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 "-")}
|
||||||
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user