Skip to content

Commit

Permalink
v2.20 - Bugfixes - Clear Cache button random key added
Browse files Browse the repository at this point in the history
  • Loading branch information
pranjal-joshi committed Dec 4, 2023
1 parent 67ed922 commit ec16359
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/streamlit_app.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import random
import streamlit as st
import streamlit.components.v1 as components
import requests
Expand Down Expand Up @@ -51,6 +52,7 @@ def show_df_as_result_table():
clear_cache_btn = cc.button(
label='Clear Cached Data',
use_container_width=True,
key=random.randint(),
)
if clear_cache_btn:
os.system('rm stock_data_*.pkl')
Expand Down

0 comments on commit ec16359

Please sign in to comment.