Skip to content

Commit

Permalink
fix: Set CRON trigger fields
Browse files Browse the repository at this point in the history
  • Loading branch information
WillDaSilva committed Jul 12, 2024
1 parent 4f5790d commit 55b56e1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/apscheduler/triggers/cron/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ def _set_fields(self, values: Sequence[int | str | None]) -> None:

field = field_class(field_name, exprs)
self._fields.append(field)
setattr(self, field_name, field)

@classmethod
def from_crontab(cls, expr: str, timezone: str | tzinfo = "local") -> CronTrigger:
Expand Down

0 comments on commit 55b56e1

Please sign in to comment.