fixed a bug where the first command line argument was included in the script name rather than the job args.

pull/204/head
Chris Veilleux 2020-01-15 15:52:08 -06:00
parent 13bfd31cc1
commit f7db838a8e
1 changed files with 4 additions and 2 deletions

View File

@ -101,14 +101,16 @@ def test_scheduler():
def load_19_02_skills():
"""Load the json file from the mycroft-skills-data repository to the DB"""
job_runner = JobRunner('load_skill_display_data.py --core-version 19.02')
job_runner = JobRunner('load_skill_display_data.py')
job_runner.job_args = '--core-version 19.02'
job_runner.job_date = date.today() - timedelta(days=1)
job_runner.run_job()
def load_19_08_skills():
"""Load the json file from the mycroft-skills-data repository to the DB"""
job_runner = JobRunner('load_skill_display_data.py --core-version 19.08')
job_runner = JobRunner('load_skill_display_data.py')
job_runner.job_args = '--core-version 19.08'
job_runner.job_date = date.today() - timedelta(days=1)
job_runner.run_job()