bohmian commited on
Commit
fbf14cd
·
1 Parent(s): 3ae2ba3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -30,8 +30,8 @@ future_string = (today + relativedelta(months=3)).strftime('%Y-%m-%d')
30
  url = f"{base_url}earning_calendar?from={today_string}&to={future_string}&apikey={apiKey}"
31
 
32
  # This decorator ensures that the call to the FMP API will only run once at the start of this app
33
- # The data will be cached after running
34
- # Without this decorator, the API will be called each time
35
  @st.cache_resource
36
  def get_earnings_dates(url):
37
  events = get_jsonparsed_data(url)
 
30
  url = f"{base_url}earning_calendar?from={today_string}&to={future_string}&apikey={apiKey}"
31
 
32
  # This decorator ensures that the call to the FMP API will only run once at the start of this app
33
+ # The data returned will be cached after the function runs
34
+ # Without this decorator, the API will be called each time you click something in the streamlit app
35
  @st.cache_resource
36
  def get_earnings_dates(url):
37
  events = get_jsonparsed_data(url)