haileyhalimj@gmail.com commited on
Commit Β·
bded803
1
Parent(s): e892a6b
delete the daily / weekly selection
Browse files- config_page.py +3 -11
config_page.py
CHANGED
|
@@ -256,7 +256,7 @@ def initialize_session_state():
|
|
| 256 |
from config.optimization_config import (
|
| 257 |
# Import the actual computed values, not just constants
|
| 258 |
EVENING_SHIFT_MODE, EVENING_SHIFT_DEMAND_THRESHOLD,
|
| 259 |
-
FIXED_STAFF_CONSTRAINT_MODE,
|
| 260 |
MAX_HOUR_PER_PERSON_PER_DAY, get_max_hour_per_shift_per_person,
|
| 261 |
get_max_parallel_workers, get_cost_list_per_emp_shift,
|
| 262 |
get_payment_mode_config, get_line_cnt_per_type,
|
|
@@ -277,7 +277,7 @@ def initialize_session_state():
|
|
| 277 |
defaults = {
|
| 278 |
# Schedule configuration - from optimization_config.py
|
| 279 |
'start_date': start_date.date() if hasattr(start_date, 'date') else start_date,
|
| 280 |
-
'schedule_type':
|
| 281 |
|
| 282 |
# Shift configuration - from optimization_config.py
|
| 283 |
'evening_shift_mode': EVENING_SHIFT_MODE,
|
|
@@ -349,15 +349,7 @@ def render_schedule_config():
|
|
| 349 |
|
| 350 |
with col2:
|
| 351 |
st.info("π‘ **Date Filtering**: System will use only demand data that starts on the exact date you select.")
|
| 352 |
-
|
| 353 |
-
# Schedule type
|
| 354 |
-
st.subheader("π
Scheduling Options")
|
| 355 |
-
st.session_state.schedule_type = st.selectbox(
|
| 356 |
-
"Schedule Type",
|
| 357 |
-
options=['daily', 'weekly'],
|
| 358 |
-
index=0 if st.session_state.schedule_type == 'daily' else 1,
|
| 359 |
-
help="Choose between daily or weekly scheduling"
|
| 360 |
-
)
|
| 361 |
|
| 362 |
# Evening shift configuration
|
| 363 |
st.subheader("π Evening Shift Configuration")
|
|
|
|
| 256 |
from config.optimization_config import (
|
| 257 |
# Import the actual computed values, not just constants
|
| 258 |
EVENING_SHIFT_MODE, EVENING_SHIFT_DEMAND_THRESHOLD,
|
| 259 |
+
FIXED_STAFF_CONSTRAINT_MODE,
|
| 260 |
MAX_HOUR_PER_PERSON_PER_DAY, get_max_hour_per_shift_per_person,
|
| 261 |
get_max_parallel_workers, get_cost_list_per_emp_shift,
|
| 262 |
get_payment_mode_config, get_line_cnt_per_type,
|
|
|
|
| 277 |
defaults = {
|
| 278 |
# Schedule configuration - from optimization_config.py
|
| 279 |
'start_date': start_date.date() if hasattr(start_date, 'date') else start_date,
|
| 280 |
+
'schedule_type': 'weekly', # Fixed to weekly only
|
| 281 |
|
| 282 |
# Shift configuration - from optimization_config.py
|
| 283 |
'evening_shift_mode': EVENING_SHIFT_MODE,
|
|
|
|
| 349 |
|
| 350 |
with col2:
|
| 351 |
st.info("π‘ **Date Filtering**: System will use only demand data that starts on the exact date you select.")
|
| 352 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 353 |
|
| 354 |
# Evening shift configuration
|
| 355 |
st.subheader("π Evening Shift Configuration")
|