mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
data: Added old getExclusions functionality inside getAllExclusions
This commit is contained in:
parent
752ff533a9
commit
a5b78cb366
1 changed files with 4 additions and 1 deletions
|
@ -271,7 +271,10 @@ std::vector <Range> getAllExclusions (
|
||||||
std::vector <Range> results;
|
std::vector <Range> results;
|
||||||
results = addRanges (range, results, getHolidays (rules));
|
results = addRanges (range, results, getHolidays (rules));
|
||||||
|
|
||||||
auto exclusions = getExclusions (rules);
|
// Load all exclusions from configuration.
|
||||||
|
std::vector <Exclusion> exclusions;
|
||||||
|
for (auto& name : rules.all ("exclusions."))
|
||||||
|
exclusions.push_back (Exclusion (lowerCase (name), rules.get (name)));
|
||||||
|
|
||||||
// Find exclusions 'exc day on <date>' and remove from holidays.
|
// Find exclusions 'exc day on <date>' and remove from holidays.
|
||||||
// Find exlcusions 'exc day off <date>' and add to holidays.
|
// Find exlcusions 'exc day off <date>' and add to holidays.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue