summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoragronholm <devnull@localhost>2009-08-01 22:17:11 +0300
committeragronholm <devnull@localhost>2009-08-01 22:17:11 +0300
commit22ca832ff9cafac58c74da170958dc1fae974538 (patch)
treeea6bf587b622669930e440835ef52901010535b0 /src
parent440dbf4269dfdffc79123b503f6b72dd9bf44646 (diff)
downloadapscheduler-22ca832ff9cafac58c74da170958dc1fae974538.tar.gz
Corrected the parameter names
Diffstat (limited to 'src')
-rw-r--r--src/apscheduler/scheduler.py8
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