Skip to content

Commit

Permalink
Correctly log number of bots assigned
Browse files Browse the repository at this point in the history
  • Loading branch information
Jon committed Sep 17, 2024
1 parent a6e9047 commit 0326aca
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions GuildWarsPartySearch.NodeJSServer/server.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -369,14 +369,6 @@ function reassign_bot_clients(request) {
})
});

console.log(request, "bots_assigned", JSON.stringify(bots_assigned.map((map_assigned) => {
return {
map_id: map_assigned.map_id,
district_region: map_assigned.district_region,
client_id: map_assigned.bot_client.client_id
};
})));

// For remaining bots, assign them where you can
const to_reassign_cpy = Array.from(bots_to_reassign);
to_reassign_cpy.forEach((bot_client) => {
Expand All @@ -395,6 +387,14 @@ function reassign_bot_clients(request) {
}
})

console.log(request, `bots_assigned (${bots_assigned.length})`, JSON.stringify(bots_assigned.map((map_assigned) => {
return {
map_id: map_assigned.map_id,
district_region: map_assigned.district_region,
client_id: map_assigned.bot_client.client_id
};
})));

if (bots_to_reassign.length) {
console.log(request, "Bots not assigned!!!", JSON.stringify(bots_to_reassign.map((bot_client) => {
return {
Expand Down

0 comments on commit 0326aca

Please sign in to comment.