jaimalklyde commited on
Commit
18f2f29
·
verified ·
1 Parent(s): 870db05

Update src/module/Data_Exploration.py

Browse files
Files changed (1) hide show
  1. src/module/Data_Exploration.py +3 -2
src/module/Data_Exploration.py CHANGED
@@ -26,8 +26,9 @@ from module.Validation_Contract import ETL_Engine
26
 
27
 
28
  @st.cache_data(show_spinner=False)
29
- def cached_run_etl(gspread_client, sheet_name):
30
- etl = ETL_Engine(gspread_client, sheet_name)
 
31
  return etl.run_etl()
32
 
33
  class AdvancedAnalyzer:
 
26
 
27
 
28
  @st.cache_data(show_spinner=False)
29
+ def cached_run_etl(_gspread_client, sheet_name): # <--- Le "_" dit à Streamlit de ne pas hacher ceci
30
+ # On passe l'objet _gspread_client (qui contient le client) à l'ETL
31
+ etl = ETL_Engine(_gspread_client, sheet_name)
32
  return etl.run_etl()
33
 
34
  class AdvancedAnalyzer: