Skip to content

Commit

Permalink
Merge pull request #345 from bettersg/bug/unsure-absolute
Browse files Browse the repository at this point in the history
bugfix: unsure abosolute threshold using sus one
  • Loading branch information
sarge1989 authored Jun 12, 2024
2 parents c6771af + c603679 commit 85f531e
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import { defineInt } from "firebase-functions/params"
import { onDocumentUpdated } from "firebase-functions/v2/firestore"
import { tabulateVoteStats } from "../common/statistics"
import { updateTelegramReplyMarkup } from "../common/sendTelegramMessage"
import { logger } from "firebase-functions/v2"

// Define some parameters
const numVoteShards = defineInt("NUM_SHARDS_VOTE_COUNT")
Expand Down Expand Up @@ -112,7 +113,7 @@ const onVoteRequestUpdateV2 = onDocumentUpdated(
validResponsesCount >
Math.min(
thresholds.endVoteUnsure * factCheckerCount,
thresholds.endVoteSusAbsolute //16
thresholds.endVoteUnsureAbsolute //16
)) ||
(!isUnsure &&
validResponsesCount >
Expand Down

0 comments on commit 85f531e

Please sign in to comment.