From 953771644fd96924998b3f4a392da554ff4bf707 Mon Sep 17 00:00:00 2001 From: James McKinney <26463+jpmckinney@users.noreply.github.com> Date: Sat, 20 Jul 2024 02:59:58 -0400 Subject: [PATCH] fix: Fix call to cancel_button from 848fc18 --- scrapyd/website.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scrapyd/website.py b/scrapyd/website.py index fe29bd1e..45fc11e2 100644 --- a/scrapyd/website.py +++ b/scrapyd/website.py @@ -314,7 +314,7 @@ def prep_tab_pending(self): "Project": escape(project), "Spider": escape(m["name"]), "Job": escape(m["_job"]), - "Cancel": self.cancel_button(project=project, jobid=m["_job"], base_path=self.base_path), + "Cancel": cancel_button(project=project, jobid=m["_job"], base_path=self.base_path), } ) for project, queue in self.root.scheduler.queues.items() @@ -333,7 +333,7 @@ def prep_tab_running(self): "Runtime": microsec_trunc(datetime.now() - p.start_time), "Log": f'Log', "Items": f'Items', - "Cancel": self.cancel_button(project=p.project, jobid=p.job, base_path=self.base_path), + "Cancel": cancel_button(project=p.project, jobid=p.job, base_path=self.base_path), } ) for p in self.root.launcher.processes.values()