Skip to content

Commit

Permalink
code fix
Browse files Browse the repository at this point in the history
  • Loading branch information
iamnovichek committed Feb 5, 2025
1 parent 7028d16 commit 2126a5f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions apps/dashboard_app/dashboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,16 @@
from streamlit_autorefresh import st_autorefresh
from data_handler.celery_app.celery_conf import CRONTAB_TIME

ON_MINUTE_IN_MILISECONDS = 60000 * int(CRONTAB_TIME)
ONE_MINUTE_IN_MILISECONDS = 60000
REFRESH_TIME = ONE_MINUTE_IN_MILISECONDS * int(CRONTAB_TIME)

if __name__ == "__main__":
logging.basicConfig(level=logging.INFO)
logger = logging.getLogger(__name__)

dashboard = Dashboard() # (`st.set_page_config` in `Dashboard` must be called once)
# Set up autorefresh data config
st_autorefresh(interval=ON_MINUTE_IN_MILISECONDS, key="datarefresh")
st_autorefresh(interval=REFRESH_TIME, key="datarefresh")

dashboard_data_handler = DashboardDataHandler()
(dashboard.state,
Expand Down

0 comments on commit 2126a5f

Please sign in to comment.