wanwanlin0521 commited on
Commit
fa548ee
·
verified ·
1 Parent(s): 2f114f2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -4
app.py CHANGED
@@ -1042,10 +1042,16 @@ def combine_schedules(provider_info_file, provider_files, ma_files, start_date,
1042
  tstr = get_time_string(r)
1043
 
1044
  # Color coding based on age coverage
1045
- color = "#ff6347" if r['Name'] in full else
1046
- "#008000" if r['Name'] in under else
1047
- "#0000ff" if r['Name'] in over else
1048
- "#8E44AD" if r['Name'] in only25 else "#000000"
 
 
 
 
 
 
1049
  style = f"font-size:6.8pt;margin:0.2mm;line-height:1.05;color:{color};"
1050
  if tstr in OFF_LST:
1051
  style += "text-decoration:line-through;"
 
1042
  tstr = get_time_string(r)
1043
 
1044
  # Color coding based on age coverage
1045
+ if r['Name'] in full:
1046
+ color = "#ff6347"
1047
+ elif r['Name'] in under:
1048
+ color = "#008000"
1049
+ elif r['Name'] in over:
1050
+ color = "#0000ff"
1051
+ elif r['Name'] in only25:
1052
+ color = "#8E44AD"
1053
+ else:
1054
+ color = "#000000"
1055
  style = f"font-size:6.8pt;margin:0.2mm;line-height:1.05;color:{color};"
1056
  if tstr in OFF_LST:
1057
  style += "text-decoration:line-through;"