fix: keep overlapping periods

This commit is contained in:
Tobias Reisinger 2019-09-15 14:09:00 +02:00
parent be84c0e4c2
commit 3aa0c514a5

View file

@ -60,19 +60,6 @@ helpers::parse_periods(Json::Value periods_json)
{ {
continue; continue;
} }
bool period_overlap = false;
for(int j = 0; j < result->length; j++)
{
if(result->periods[j]->is_in_period(start) || result->periods[j]->is_in_period(end))
{
period_overlap = true;
break;
}
}
if(period_overlap)
{
continue;
}
result->add_period(start, end); result->add_period(start, end);
} }