diff options
author | agronholm <devnull@localhost> | 2009-08-01 22:17:11 +0300 |
---|---|---|
committer | agronholm <devnull@localhost> | 2009-08-01 22:17:11 +0300 |
commit | 22ca832ff9cafac58c74da170958dc1fae974538 (patch) | |
tree | ea6bf587b622669930e440835ef52901010535b0 /src | |
parent | 440dbf4269dfdffc79123b503f6b72dd9bf44646 (diff) | |
download | apscheduler-22ca832ff9cafac58c74da170958dc1fae974538.tar.gz |
Corrected the parameter names
Diffstat (limited to 'src')
-rw-r--r-- | src/apscheduler/scheduler.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/apscheduler/scheduler.py b/src/apscheduler/scheduler.py index b0211d5..eba7707 100644 --- a/src/apscheduler/scheduler.py +++ b/src/apscheduler/scheduler.py @@ -126,8 +126,8 @@ class Scheduler(object): self.thread.join(timeout) self.jobs = [] - def cron_schedule(self, years='*', months='*', days='*', days_of_week='*', - hours='*', minutes='*', seconds='*', args=None, + def cron_schedule(self, year='*', month='*', day='*', day_of_week='*', + hour='*', minute='*', second='*', args=None, kwargs=None): """ Decorator that causes its host function to be scheduled @@ -137,8 +137,8 @@ class Scheduler(object): See :meth:`add_cron_job` for more information. """ def inner(func): - self.add_cron_job(func, years, months, days, days_of_week, hours, - minutes, seconds, args, kwargs) + self.add_cron_job(func, year, month, day, day_of_week, hour, + minute, second, args, kwargs) return func return inner |