From d4b99ced210af50aff6057f07141d8b83515800e Mon Sep 17 00:00:00 2001 From: adistya13 Date: Mon, 11 May 2026 19:13:02 +0700 Subject: [PATCH] update --- page_modules/crawling_page.py | 47 +++++++++++++++++++++++------------ 1 file changed, 31 insertions(+), 16 deletions(-) diff --git a/page_modules/crawling_page.py b/page_modules/crawling_page.py index e780241..a4ec48b 100644 --- a/page_modules/crawling_page.py +++ b/page_modules/crawling_page.py @@ -527,7 +527,8 @@ def _render_nrt_status_banner(sched_ok): dot = "#f59e0b" title = "âš ī¸ Crawler Service Belum Aktif" desc = ( - f"Jalankan python3 crawler.py di terminal terpisah " + # f"Jalankan python3 crawler.py di terminal terpisah " + f"Jalankan python crawler.py di terminal terpisah " f"untuk mengaktifkan crawler otomatis setiap " f"{NRT_INTERVAL_MINUTES} menit." ) @@ -838,8 +839,20 @@ def show(): col1, col2, col3, col4 = st.columns(4) MODE_CFG = { - "realtime": { + "captured": { "col": col1, + "key": "btn_captured", + "label": "📆 Tweet Hari Ini", + "title": "Tweet Hari Ini", + "icon": "📆", + "desc": "Tweet bertanggal asli hari ini", + "active_bg": "linear-gradient(135deg,#f0f9ff,#dbeafe)", + "active_border": "#0ea5e9", + "active_tc": "#0c4a6e", + "icon_bg": "#0284c7", + }, + "realtime": { + "col": col2, "key": "btn_realtime", "label": "📡 Terkini (7 Hari)", "title": "Tweet Terkini", @@ -851,7 +864,7 @@ def show(): "icon_bg": "#16a34a", }, "30days": { - "col": col2, + "col": col3, "key": "btn_30days", "label": "📅 30 Hari Terakhir", "title": "30 Hari Terakhir", @@ -862,18 +875,18 @@ def show(): "active_tc": "#1e3a8a", "icon_bg": "#3b6cf7", }, - "captured": { - "col": col3, - "key": "btn_captured", - "label": "📆 Tweet Hari Ini", - "title": "Tweet Hari Ini", - "icon": "📆", - "desc": "Tweet bertanggal asli hari ini", - "active_bg": "linear-gradient(135deg,#f0f9ff,#dbeafe)", - "active_border": "#0ea5e9", - "active_tc": "#0c4a6e", - "icon_bg": "#0284c7", - }, + # "captured": { + # "col": col3, + # "key": "btn_captured", + # "label": "📆 Tweet Hari Ini", + # "title": "Tweet Hari Ini", + # "icon": "📆", + # "desc": "Tweet bertanggal asli hari ini", + # "active_bg": "linear-gradient(135deg,#f0f9ff,#dbeafe)", + # "active_border": "#0ea5e9", + # "active_tc": "#0c4a6e", + # "icon_bg": "#0284c7", + # }, "custom": { "col": col4, "key": "btn_custom", @@ -1054,7 +1067,9 @@ def show(): elif sched_ok: st.success("✅ Crawler aktif — data diperbarui otomatis") else: - st.info("â„šī¸ Jalankan `python3 crawler.py` untuk mengaktifkan crawler") + # st.info("â„šī¸ Jalankan `python3 crawler.py` untuk mengaktifkan crawler") + st.info("â„šī¸ Jalankan `python crawler.py` untuk mengaktifkan crawler") + with col_refresh: previous_auto_refresh = st.session_state.get("auto_refresh_ui", False)