Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cron equality check returns True when it shouldn't #23

Open
NiklasRosenstein opened this issue Jan 8, 2025 · 1 comment
Open

Cron equality check returns True when it shouldn't #23

NiklasRosenstein opened this issue Jan 8, 2025 · 1 comment

Comments

@NiklasRosenstein
Copy link

Hi! First of all, thanks for this neat package.

A small example to reproduce the issue:

$ uv run --with cron-converter python -c \
  'from cron_converter import Cron; a = Cron("32 * * * *"); b = Cron("33 * * * *"); print(a == b)'

This prints True, when it should print False because the second at which the Cron should execute is different.

@Sonic0
Copy link
Owner

Sonic0 commented Jan 9, 2025

Hi, @NiklasRosenstein. Thank you for bringing this to my attention. I’ve reproduced the issue, and you are correct. I’ll investigate the problem as soon as possible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants