Actualizar automatizaciones.html
This commit is contained in:
@@ -121,14 +121,21 @@
|
|||||||
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);
|
||||||
}
|
}
|
||||||
} catch (e) { console.error(e); }
|
} catch (e) { console.error(e); }
|
||||||
}
|
}
|
||||||
|
|
||||||
function renderCards(activeServices) {
|
function renderCards(activeServices) {
|
||||||
const container = document.getElementById('automation-list');
|
const container = document.getElementById('automation-list');
|
||||||
|
|||||||
Reference in New Issue
Block a user