Skip to content

Commit

Permalink
All ban courts are exactly 72 hours long for simplicity and predictab…
Browse files Browse the repository at this point in the history
…ility.
  • Loading branch information
Ubuntu committed Nov 22, 2024
1 parent c1cfe33 commit b7e4a13
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions ban.js
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ async function UpdateTrial(cu) {
}
}
} else {
baselineVoteDurationDays = 1;
baselineVoteDurationDays = 3;
await cu.setGoodStanding(true);
}
const canvas = new Canvas.Canvas(360, 16 + 32 + 16);
Expand Down Expand Up @@ -234,8 +234,7 @@ async function UpdateTrial(cu) {
attachment: buffer,
name: imageFilename,
};
const turnout = combinedWeight / availableWeight;
const durationDays = baselineVoteDurationDays * (1 - turnout);
const durationDays = baselineVoteDurationDays;
const durationSeconds = durationDays * 86400;
const endTime = startTime.add(durationSeconds, 'seconds');
if (currentTime.isAfter(endTime)) {
Expand Down

0 comments on commit b7e4a13

Please sign in to comment.