mirror of
https://github.com/Sea-Haven-Industries/afterhours-shift-manager.git
synced 2026-09-30 07:53:11 +00:00
Only show day/night shift labels on weekends in schedule display
Weekday shifts are always night — the label was redundant clutter.
This commit is contained in:
parent
702f1fd9a2
commit
0d119f494b
1 changed files with 1 additions and 1 deletions
|
|
@ -23,7 +23,7 @@ def _format_shift_line(
|
|||
shift_type: str = "night",
|
||||
) -> str:
|
||||
day_label = date.strftime("%a %b %-d")
|
||||
if shift_type in SHIFT_LABELS:
|
||||
if date.strftime("%A") in WEEKEND_DAYS and shift_type in SHIFT_LABELS:
|
||||
day_label += f" {SHIFT_LABELS[shift_type]}"
|
||||
if is_today:
|
||||
day_label = f"*{day_label} (today)*"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue