From 8b21df358e3da9813704ee305f86412ff4ab55ce Mon Sep 17 00:00:00 2001 From: lucasrodes Date: Tue, 26 Nov 2024 15:35:52 +0100 Subject: [PATCH] ci/cd --- apps/wizard/app_pages/chart_animation.py | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/apps/wizard/app_pages/chart_animation.py b/apps/wizard/app_pages/chart_animation.py index 26423ac3ef6..7fdda09d2c1 100644 --- a/apps/wizard/app_pages/chart_animation.py +++ b/apps/wizard/app_pages/chart_animation.py @@ -75,13 +75,9 @@ def add_icons_to_tabs(tab_name): # Create the default output folder if it doesn't exist. st.session_state.chart_animation_images_folder.mkdir(parents=True) image_paths = [image for image in st.session_state.chart_animation_images_folder.iterdir() if image.suffix == ".png"] -set_states( - { - "chart_animation_gif_file": DOWNLOADS_DIR / f"{slug}.gif", - "chart_animation_image_paths": image_paths, - "chart_animation_images_exist": len(image_paths) > 0, - } -) +st.session_state.chart_animation_gif_file = DOWNLOADS_DIR / f"{slug}.gif" +st.session_state.chart_animation_image_paths = image_paths +st.session_state.chart_animation_images_exist = len(image_paths) > 0 # Button if st.button(