Skip to content

Commit

Permalink
fixed unexpected indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
pirroman committed Jan 5, 2021
1 parent 520f959 commit 8e1c263
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions schedule/job.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,16 +238,20 @@ def tag(self, *tags):
def at(self, time_str):
"""
Specify a particular time that the job should be run at.
:param time_str: A string in one of the following formats:
- For daily jobs -> `HH:MM:SS` or `HH:MM`
- For hourly jobs -> `MM:SS` or `:MM`
- For minute jobs -> `:SS`
The format must make sense given how often the job is
repeating; for example, a job that repeats every minute
should not be given a string in the form `HH:MM:SS`. The
difference between `:MM` and :SS` is inferred from the
selected time-unit (e.g. `every().hour.at(':30')` vs.
`every().minute.at(':30')`).
:return: The invoked job instance
"""
if (self.unit not in ('days', 'hours', 'minutes')
Expand Down

0 comments on commit 8e1c263

Please sign in to comment.