[Season] Formatter: Make better use of Item and ItemList

Created on 9 February 2023, almost 2 years ago
Updated 17 February 2023, almost 2 years ago

Problem/Motivation

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.

Remaining tasks

- 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.

API changes

The key of the season header may change, if that favours the sorting.

📌 Task
Status

Fixed

Version

1.0

Component

Code - formatter

Created by

🇳🇱Netherlands johnv

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024