bbkane / ptoplotter

Plot Paid Time Off
0 stars 0 forks source link

Stops tracking one_day_changes after two entries #1

Open donckers opened 6 years ago

donckers commented 6 years ago

After adding previous PTO days I noticed it stops plotting the changes after the second one.

--- # PDO
start_date: 2018-01-01 # remove this line to start from today
end_date: 2018-12-31
start_hours: 0
hour_markers:
- label: 40 hr buffer
  hours: 40
holidays:
# Acxiom holidays
- 2018-01-01  # New Year's Day (Observed)
- 2018-02-19  # Presidents' Day
- 2018-05-28  # Memorial Day
- 2018-07-04  # Independence Day
- 2018-09-03  # Labor Day
- 2018-11-22  # Thanksgiving
- 2018-11-23  # Day After Thanksgiving
- 2018-12-24  # Christmas Eve (Observed)
- 2018-12-25  # Christmas Day
repeating_changes:
- day_of_month: 15  # Accrue PTO
  hour_change: 12.67
one_day_changes:
- date: 2018-02-28
  hour_change: -8
- date: 2018-03-07
  hour_change: -8
- date: 2018-03-13
  hour_change: -8
- date: 2018-03-15
  hour_change: -8
- date: 2018-04-09
  hour_change: -8
ranged_changes:
# Example ranged vacation
- start_date: 2018-05-10
  end_date: 2018-05-11
  hour_change: -8
donckers commented 6 years ago

After further examination I noticed it isn't the number of one_day_changes but, when they take place. After March 7th they don't track.