You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Can be done easily. In response for Locals we need an additional field buddyBefore or Unlock with Yes and No. This new field need to be added to the variable sheet e.g. variable called buddy. Then you can add at calcAffinities() at
for (var i = 0; i < locals.length; i++) {
// Logger.log(locals[i]);
// local buddy is willing to take more buddies
// local buddy won't be assigned to more than maxAssignents number of assignments
if (locals[i].assignments < maxAssignments && locals[i].capacity > 0 && locals[i].buddy=="Ja") {
as.push(i);
}
}
the following && locals[i].buddy=="Ja"
Now if there is no Ja at the field buddy the local wont be assigned.
possibility that every buddy has to come to an office hour and get unlocked for the system
The text was updated successfully, but these errors were encountered: