Skip to content

Commit

Permalink
Rename key for advanced schedules from 'cron' to 'schedule' in config
Browse files Browse the repository at this point in the history
  • Loading branch information
gazpachoking committed Sep 28, 2014
1 parent 3c3d08e commit 6e91391
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions flexget/plugins/daemon/scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,10 @@ def is_cron_schedule(instance):
'properties': {
'tasks': {'type': ['array', 'string'], 'items': {'type': 'string'}},
'interval': interval_schema,
'cron': cron_schema
'schedule': cron_schema
},
'required': ['tasks'],
'oneOf': [{'required': ['cron']}, {'required': ['interval']}],
'oneOf': [{'required': ['schedule']}, {'required': ['interval']}],
'error_oneOf': 'Either `cron` or `interval` must be defined.',
'additionalProperties': False
}
Expand Down Expand Up @@ -125,7 +125,7 @@ def setup_jobs(manager):
if 'interval' in job_config:
trigger = IntervalTrigger(**job_config['interval'])
else:
trigger = CronTrigger(**job_config['cron'])
trigger = CronTrigger(**job_config['schedule'])
tasks = job_config['tasks']
if not isinstance(tasks, list):
tasks = [tasks]
Expand Down

0 comments on commit 6e91391

Please sign in to comment.