fix shidfs popup, maybe found a working do-it-all publishers data API functoin (ToDo: implement separate and simple fns if it does not work)

This commit is contained in:
Dobromir Popov
2024-05-28 16:44:10 +03:00
parent 9ad77bec38
commit 59dd7cd7b4
4 changed files with 33 additions and 17 deletions

View File

@ -996,9 +996,9 @@ async function RankPublishersForShiftWeighted(publishers, scheduledPubsPerDayAnd
// Log the scores and penalties of the top publisher
if (ranked.length > 0) {
console.log(`Top Publisher: ${ranked[0].name}`);
console.log(`Score: ${ranked[0].score}`);
console.log(`Penalties:`, ranked[0].penalties);
console.log(`Top Publisher: ${ranked[0].firstName} ${ranked[0].lastName}`,
` Score: ${ranked[0].score}`, "last score: ", ranked[ranked.length - 1].score,
` Penalties: `, ranked[0].penalties);
}
return ranked;