Skip to content

Commit

Permalink
fix: Fix call to cancel_button from 848fc18
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmckinney committed Jul 20, 2024
1 parent e08a9ba commit 9537716
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scrapyd/website.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -333,7 +333,7 @@ def prep_tab_running(self):
"Runtime": microsec_trunc(datetime.now() - p.start_time),
"Log": f'<a href="{self.base_path}{job_log_url(p)}">Log</a>',
"Items": f'<a href="{self.base_path}{job_items_url(p)}">Items</a>',
"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()
Expand Down

0 comments on commit 9537716

Please sign in to comment.