taichino / croniter

croniter is a python module to provide iteration for datetime object.
http://github.com/taichino/croniter
387 stars 105 forks source link

Fix "get_next" after exact minute change #103

Closed avikam-pagaya closed 6 years ago

avikam-pagaya commented 6 years ago

Since #100, in 5-asterisk based cron, when now agrees with the cron string, get_next() is returning it (now). This is not expected (here and here). This fix should allow backward compatibility while keeping the change in #100

kiorky commented 6 years ago

Yep i have more or less the same fix locally, but i didnt as i said managed to have the time to do it correctly, and did not want to rush out a release. Can you rebase your commits, and we will get that in ! Thanks !

kiorky commented 6 years ago

LGTM, ill merge it tomorrow, big thx !