From abf820fe084a4285f68fe37e36b227b9949db030 Mon Sep 17 00:00:00 2001 From: NY Date: Fri, 21 Mar 2025 11:57:34 +0800 Subject: [PATCH] +selection --- pkg/config.py | 5 ++++- pkg/dash/func/render.py | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/pkg/config.py b/pkg/config.py index 2638681..fd4cfa1 100644 --- a/pkg/config.py +++ b/pkg/config.py @@ -27,11 +27,14 @@ interval_options = [ {'label': '10 minutes', 'value': 10}, {'label': '30 minutes', 'value': 30}, {'label': '60 minutes', 'value': 60}, - {'label': '⅓ day', 'value': 480}, + {'label': '6 hours(1/4 day)', 'value': 360}, + {'label': '8 hours(1/3 day)', 'value': 480}, + {'label': '12 hours(1/2 day)', 'value': 720}, {'label': '1 day', 'value': 1440} ] days_options = [ {'label': '7 days', 'value': 7}, + {'label': '14 days', 'value': 14}, {'label': '30 days', 'value': 30}, {'label': '90 days', 'value': 90}, {'label': '120 days', 'value': 120}, diff --git a/pkg/dash/func/render.py b/pkg/dash/func/render.py index 2cdc5f8..ddeaa5f 100644 --- a/pkg/dash/func/render.py +++ b/pkg/dash/func/render.py @@ -142,5 +142,5 @@ def render_tab_content(tab, selected_dates, interval, time_zones, days_to_displa yaxis=dict(autorange='reversed') if tab == 'one_day_heatmap' else None ) - summary = f"Total tweets for selected dates: {int(tweet_count_total)}Total tweets: {get_tweets_since_last_friday()}" + summary = f"Total tweets: {get_tweets_since_last_friday()}" return dcc.Graph(figure=fig), warning, summary \ No newline at end of file