Actualizar automatizaciones.html
This commit is contained in:
@@ -121,8 +121,15 @@
|
|||||||
activeIntervals.forEach(clearInterval);
|
activeIntervals.forEach(clearInterval);
|
||||||
activeIntervals = [];
|
activeIntervals = [];
|
||||||
|
|
||||||
const inQueue = scrapedData.filter(s => s.automation_status === 'in_progress' && s.current_worker_name !== null);
|
// Filtrado estricto: Solo mostramos lo que NO es 'manual'
|
||||||
const failed = scrapedData.filter(s => s.automation_status === 'failed' || (s.automation_status === 'in_progress' && s.current_worker_name === null));
|
const inQueue = scrapedData.filter(s =>
|
||||||
|
s.automation_status === 'in_progress' && s.current_worker_name !== null
|
||||||
|
);
|
||||||
|
|
||||||
|
const failed = scrapedData.filter(s =>
|
||||||
|
s.automation_status === 'failed' ||
|
||||||
|
(s.automation_status === 'in_progress' && s.current_worker_name === null)
|
||||||
|
);
|
||||||
|
|
||||||
renderCards(inQueue);
|
renderCards(inQueue);
|
||||||
renderFailedTable(failed);
|
renderFailedTable(failed);
|
||||||
|
|||||||
Reference in New Issue
Block a user