Skip to content

Years passed and opmized code

Compare
Choose a tag to compare
@J-Lindvig J-Lindvig released this 31 Jan 19:17
· 39 commits to main since this release
64cd661

This release features a calculation on years passed in custom events, which is enabled by default and possible to bypass in configuration:

flagdays_dk:
  # Optional entries
  
  # Create attributes with specified offset in minutes
  # These are to be used as triggers in automatiions
  offset: 10
  
  # List of flags that we own and wish to use
  flags:
    - grønland
    - færø
    - pride
    - Jolly Roger

  # List of custom events
  # Required: name and date
  # Optional: flag
  events:
    - name: Jolly Roger Memorial Day
      date: 01-01-2022
      flag: Jolly Roger
      calculate_years: false # Do not calculate years on this event
    - name: Copenhagen Pride
      date: 01-08-2004
    - name: Tim Berners Lee Birthday
      date: 08-06-1955
    - name: Ada Lovelace Birthday
      date: 10-12-1815