haileyhalimj@gmail.com commited on
Commit
07cab60
Β·
1 Parent(s): 3e33d31

Fix: Remove non-existent set_global_dates call

Browse files

- Remove call to extract.set_global_dates() which doesn't exist
- Extract functions take start_date as parameter directly
- No need for global date setting

Files changed (1) hide show
  1. src/config/optimization_config.py +1 -3
src/config/optimization_config.py CHANGED
@@ -64,9 +64,7 @@ def get_date_span():
64
  #fetch date from streamlit or default value. The streamlit and default references the demand data (COOIS_Planned_and_Released.csv)
65
  DATE_SPAN, start_date, end_date = get_date_span()
66
 
67
- # Update global dates in extract module BEFORE any data loading
68
- extract.set_global_dates(start_date, end_date)
69
-
70
  print(f"\nπŸ“… DATE RANGE: {start_date} to {end_date}")
71
  print(f"πŸ“ PRODUCT SOURCE: COOIS_Released_Prod_Orders.csv")
72
 
 
64
  #fetch date from streamlit or default value. The streamlit and default references the demand data (COOIS_Planned_and_Released.csv)
65
  DATE_SPAN, start_date, end_date = get_date_span()
66
 
67
+ # Note: No need to set global dates - extract functions take start_date as parameter directly
 
 
68
  print(f"\nπŸ“… DATE RANGE: {start_date} to {end_date}")
69
  print(f"πŸ“ PRODUCT SOURCE: COOIS_Released_Prod_Orders.csv")
70