Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 |
-
|
| 1046 |
-
|
| 1047 |
-
|
| 1048 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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;"
|