From a471e057f54021f9f27da7cbebed4b1353aa32a3 Mon Sep 17 00:00:00 2001 From: Ajay Ramachandran Date: Wed, 7 Jul 2021 18:21:25 -0400 Subject: [PATCH] Remove category from segment id --- src/routes/postSkipSegments.ts | 4 ++-- src/utils/getSubmissionUUID.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/routes/postSkipSegments.ts b/src/routes/postSkipSegments.ts index b026f7c..2065d35 100644 --- a/src/routes/postSkipSegments.ts +++ b/src/routes/postSkipSegments.ts @@ -235,7 +235,7 @@ async function autoModerateSubmission(apiVideoInfo: APIVideoInfo, const startTime = parseFloat(segments[i].segment[0]); const endTime = parseFloat(segments[i].segment[1]); - const UUID = getSubmissionUUID(submission.videoID, segments[i].category, segments[i].actionType, submission.userID, startTime, endTime); + const UUID = getSubmissionUUID(submission.videoID, segments[i].actionType, submission.userID, startTime, endTime); // Send to Discord // Note, if this is too spammy. Consider sending all the segments as one Webhook sendWebhooksNB(submission.userID, submission.videoID, UUID, startTime, endTime, segments[i].category, nbPredictions.probabilities[predictionIdx], data); @@ -520,7 +520,7 @@ export async function postSkipSegments(req: Request, res: Response): Promise