From e36a32673927140afeeacd3ca455518f826619c0 Mon Sep 17 00:00:00 2001 From: Edward Betts Date: Sat, 14 Mar 2026 11:18:23 +0000 Subject: [PATCH] Fix Gantt tooltip for single-day events MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Show "Geomob Edinburgh (6 May)" instead of "Geomob Edinburgh (6 May–6 May)". Co-Authored-By: Claude Sonnet 4.6 --- web_view.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/web_view.py b/web_view.py index 8ba8b25..1f86025 100755 --- a/web_view.py +++ b/web_view.py @@ -484,9 +484,13 @@ def build_conference_timeline( "width_pct": width_pct, "key": f"{conf['start_date'].isoformat()}|{conf['name']}", "label": ( - f"{conf['name']}" - f" ({conf['start_date'].strftime('%-d %b')}–" - f"{conf['end_date'].strftime('%-d %b')})" + f"{conf['name']} ({conf['start_date'].strftime('%-d %b')})" + if conf["start_date"] == conf["end_date"] + else ( + f"{conf['name']}" + f" ({conf['start_date'].strftime('%-d %b')}–" + f"{conf['end_date'].strftime('%-d %b')})" + ) ), } )