From a5b78cb36683d1fc5396044cc5ce2d2bcabccf6b Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Thu, 12 May 2016 17:30:17 -0400 Subject: [PATCH] data: Added old getExclusions functionality inside getAllExclusions --- src/data.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/data.cpp b/src/data.cpp index 15c3b276..e21668ba 100644 --- a/src/data.cpp +++ b/src/data.cpp @@ -271,7 +271,10 @@ std::vector getAllExclusions ( std::vector results; results = addRanges (range, results, getHolidays (rules)); - auto exclusions = getExclusions (rules); + // Load all exclusions from configuration. + std::vector exclusions; + for (auto& name : rules.all ("exclusions.")) + exclusions.push_back (Exclusion (lowerCase (name), rules.get (name))); // Find exclusions 'exc day on ' and remove from holidays. // Find exlcusions 'exc day off ' and add to holidays.