Skip to content

Commit

Permalink
Merge pull request #132 from evanpurkhiser/black-missed-call-sites
Browse files Browse the repository at this point in the history
balck: A couple missed call-site formats
  • Loading branch information
kiorky authored Oct 31, 2024
2 parents f1b43db + 90462a4 commit 80ceae4
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions src/croniter/croniter.py
Original file line number Diff line number Diff line change
Expand Up @@ -410,8 +410,7 @@ def _get_next(
dom_dow_exception_processed = True

if not dom_dow_exception_processed:
result = self._calc(self.cur, expanded,
nth_weekday_of_month, is_prev)
result = self._calc(self.cur, expanded, nth_weekday_of_month, is_prev)

# DST Handling for cron job spanning across days
dtstarttime = self._timestamp_to_datetime(self.dst_start_time)
Expand Down Expand Up @@ -1289,10 +1288,15 @@ def croniter_range(
start += ms1
stop -= ms1
year_span = math.floor(abs(stop.year - start.year)) + 1
ic = _croniter(expr_format, start, ret_type=datetime.datetime, day_or=day_or,
max_years_between_matches=year_span,
second_at_beginning=second_at_beginning,
expand_from_start_time=expand_from_start_time)
ic = _croniter(
expr_format,
start,
ret_type=datetime.datetime,
day_or=day_or,
max_years_between_matches=year_span,
second_at_beginning=second_at_beginning,
expand_from_start_time=expand_from_start_time,
)
# define a continue (cont) condition function and step function for the main while loop
if start < stop: # Forward

Expand Down

0 comments on commit 80ceae4

Please sign in to comment.