cli/list-scheduled: remove a spurious host entry
2 files changed, 6 insertions(+), 6 deletions(-)

M rework/cli.py
M tests/test_cli.py
M rework/cli.py +2 -2
@@ 311,7 311,7 @@ def abort_task(dburi, taskid):
 
 @rework.command(name='list-scheduled')
 @click.argument('dburi')
-def list_sceduled(dburi):
+def list_scheduled(dburi):
     init()
     engine = create_engine(find_dburi(dburi))
     sql = (

          
@@ 323,7 323,7 @@ def list_sceduled(dburi):
         opname = q.do(engine).scalar()
         print(Fore.WHITE + f'{sid}', end=' ')
         print(Fore.GREEN +
-              f'`{host or "no host"}` `{opname}` {dom} `{host or "no host"}` '
+              f'`{opname}` {dom} `{host or "no host"}` '
               f'`{meta or "no meta"}` "{rule}"'
         )
     print(Style.RESET_ALL)

          
M tests/test_cli.py +4 -4
@@ 513,7 513,7 @@ def test_scheduler(engine, cli, cleanup)
 
     r = cli('list-scheduled', engine.url)
     assert r.output.strip() == (
-        f'{sid} `no host` `print_sleep_and_go_away` default `no host` `no meta` "* * * * * *"'
+        f'{sid} `print_sleep_and_go_away` default `no host` `no meta` "* * * * * *"'
     )
 
     with workers(engine) as mon:

          
@@ 541,9 541,9 @@ def test_scheduler(engine, cli, cleanup)
 
     r = cli('list-scheduled', engine.url)
     assert r.output.strip() == (
-        f'{sid} `no host` `print_sleep_and_go_away` default `no host` '
+        f'{sid} `print_sleep_and_go_away` default `no host` '
         '`no meta` "* * * * * *"\n'
-        f'{s2} `no host` `run_in_non_default_domain` nondefault `no host` '
+        f'{s2} `run_in_non_default_domain` nondefault `no host` '
         '`no meta` "* * * * * *"'
     )
 

          
@@ 580,7 580,7 @@ def test_scheduler_with_inputs(engine, c
 
     r = cli('list-scheduled', engine.url)
     assert r.output.strip() == (
-        f'{sid} `no host` `fancy_inputs` default `no host` `no meta` "* * * * * *"'
+        f'{sid} `fancy_inputs` default `no host` `no meta` "* * * * * *"'
     )
 
     with workers(engine) as mon: