rezemika / humanized_opening_hours

A parser for the opening_hours fields from OpenStreetMap
GNU Affero General Public License v3.0
26 stars 20 forks source link

Fix opening_periods_between for periods not overlapping with dt1 and dt2 #30

Closed AlexElvers closed 5 years ago

AlexElvers commented 5 years ago

Currently, opening_periods_between returns periods that are before dt1 or after dt2. This pull request will fix this.

I have also added some tests for opening_periods_between.

rezemika commented 5 years ago

Thank you for your work! It's merged and it will be in the next version! :)