In order to complete creating the formatter for
✨
[Season Meta] Add "Seasonal Hours / Duration" feature
Fixed
, it is preferred to reorganize the code in the formatters:
This makes maintaining the code easier and less error-prone.
- use the Itemlist with daynumbers as key (where standard has consecutive keys)
which enables:
- object-oriented use of Item (standard, seasonal, exception), instead of if-then-els using the array of ItemValues.
The key of the season header may change, if that favours the sorting.
Fixed
1.0
Code - formatter