kiorky / croniter

MIT License
403 stars 39 forks source link

Supports str hash_id in is_valid() as in __init__() #71

Closed george-kuanli-peng closed 6 months ago

george-kuanli-peng commented 6 months ago

Before:

>>> croniter.is_valid('H 0 * * *', hash_id='abc')
Traceback (most recent call last):
...
TypeError: a bytes-like object is required, not 'str'

After:

>>> croniter.is_valid('H 0 * * *', hash_id='abc')
True
kiorky commented 6 months ago

I'll add some bits before release.

kiorky commented 6 months ago

Thx for the contribution !

kiorky commented 6 months ago

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