kiorky / croniter

MIT License
403 stars 39 forks source link

fix #68: Avoid over-optimization #69

Closed Cherie0125 closed 6 months ago

Cherie0125 commented 7 months ago

When both day and week are set in a cron expression, the day and week are in an OR relationship. Avoid optimizing * * 5 3 1-7 into * * 5 3 *, resulting in missing week information. Also avoid optimizing * * 1-31 3 5 into * * * 3 5, resulting in missing daily information.

Cherie0125 commented 7 months ago

@kiorky Please review and fix it as soon as possible

kiorky commented 6 months ago

Thx for the contribution and your patience !

kiorky commented 6 months ago

released: https://pypi.org/project/croniter/2.0.5/