From 3f36d5b781535599b742cbdc33e625d8ead62806 Mon Sep 17 00:00:00 2001 From: NY Date: Wed, 5 Mar 2025 11:21:37 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=B8=80=E5=A4=A9=E5=86=85?= =?UTF-8?q?=E5=8F=91=E5=B8=96=E7=83=AD=E5=9B=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg/dash/func/render.py | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/pkg/dash/func/render.py b/pkg/dash/func/render.py index f7b9c08..df47a61 100644 --- a/pkg/dash/func/render.py +++ b/pkg/dash/func/render.py @@ -114,18 +114,6 @@ def render_tab_content(tab, selected_dates, interval, time_zones, days_to_displa hovertemplate='%{y} %{x} EST
Tweets: %{z}' )) - # Add time zone annotations if selected - if 'PST' in time_zones: - pacific_2am_est = (2 + 3) * 60 // interval - pacific_7am_est = (7 + 3) * 60 // interval - fig.add_vline(x=pacific_2am_est, line_dash="dash", line_color="blue", annotation_text="CA 2AM PST") - fig.add_vline(x=pacific_7am_est, line_dash="dash", line_color="blue", annotation_text="CA 7AM PST") - if 'CST' in time_zones: - central_2am_est = (2 + 1) * 60 // interval - central_7am_est = (7 + 1) * 60 // interval - fig.add_vline(x=central_2am_est, line_dash="dash", line_color="green", annotation_text="TX 2AM CST") - fig.add_vline(x=central_7am_est, line_dash="dash", line_color="green", annotation_text="TX 7AM CST") - if tab in ['line', 'one_day_heatmap']: fig.update_layout( title=f'{"Line" if tab == "line" else "One-Day Heatmap"} Tweet Frequency (Interval: {interval} minutes, EST, {len(selected_dates)} days)',