From b7e4a13c1e890975447fae34ecbeaadad6bac498 Mon Sep 17 00:00:00 2001 From: Ubuntu Date: Fri, 22 Nov 2024 20:58:43 +0000 Subject: [PATCH] All ban courts are exactly 72 hours long for simplicity and predictability. --- ban.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/ban.js b/ban.js index 5db1976..f886dcc 100644 --- a/ban.js +++ b/ban.js @@ -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); @@ -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)) {