Skip to content

Vitalii/fix calculator

Vitalii Fisenko requested to merge vitalii/fix_calculator into master

Closes #359 (closed)

BUG REASONS:

Holiday dates in kube after YAML safe load

{'holidays': ['2020-01-01', '2020-01-06', '2020-01-07', '2020-03-09', '2020-04-20', '2020-05-01', '2020-05-11','2020-06-08', '2020-06-29', '2020-08-24', '2020-10-14', '2020-12-25'], 'timezone': 'Europe/Kiev', 'weekends': ['Saturday', 'Sunday'], 'working_days': ['2020-01-11']}

Holiday dates in compose after YAML safe load

{'weekends': ['Saturday', 'Sunday'], 'holidays': [datetime.date(2020, 1, 1), datetime.date(2020, 1, 6), datetime.date(2020, 1, 7), datetime.date(2020, 3, 9), datetime.date(2020, 4, 20), datetime.date(2020, 5, 1), datetime.date(2020, 5, 11), datetime.date(2020, 6, 8), datetime.date(2020, 6, 29), datetime.date(2020, 8, 24), datetime.date(2020, 10, 14), datetime.date(2020, 12, 25)], 'working_days': [datetime.date(2020, 1, 11)], 'timezone': 'Europe/Kiev'}

Date config file from kube

holidays:

  • "2020-01-01"
  • "2020-01-06"
  • "2020-01-07"
  • "2020-03-09"
  • "2020-04-20"
  • "2020-05-01"
  • "2020-05-11"
  • "2020-06-08"
  • "2020-06-29"
  • "2020-08-24"
  • "2020-10-14"
  • "2020-12-25" timezone: Europe/Kiev weekends:
  • Saturday
  • Sunday working_days:
  • "2020-01-11"
Edited by Vitalii Fisenko

Merge request reports