From d6d706af9507a4580ce85877e5d19532f3c35712 Mon Sep 17 00:00:00 2001 From: Bluemangoo Date: Wed, 1 Apr 2026 16:27:04 +0800 Subject: [PATCH] fix server --- script/buct-cource-helper.user.js | 2 +- src/app/routers/question.ts | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/script/buct-cource-helper.user.js b/script/buct-cource-helper.user.js index fc7709a..415cfec 100644 --- a/script/buct-cource-helper.user.js +++ b/script/buct-cource-helper.user.js @@ -85,7 +85,7 @@ answers.push(label.innerText.trim()); } } - return question + answers.map((s) => "- " + s.replaceAll("\t", "")).join("\n"); + return question + "\n\n" + answers.map((s) => "- " + s.replaceAll("\t", "")).join("\n"); } function copyToClipboard() { diff --git a/src/app/routers/question.ts b/src/app/routers/question.ts index e48222f..5eefea7 100644 --- a/src/app/routers/question.ts +++ b/src/app/routers/question.ts @@ -1,5 +1,5 @@ import router from "../router"; -import { coursePolls, deepSeekPolls } from "../data/polls"; +import { deepSeekPolls } from "../data/polls"; router.on("/question", async function (data, response) { const { question } = data.body; @@ -14,7 +14,6 @@ router.on("/question", async function (data, response) { } console.log("Received question", question); const polls = deepSeekPolls.value; - coursePolls.value = []; const pollData = { questionID: questionId, question: question,