From 86202b853d75533e48f7ed3a70f47dead3743d5a Mon Sep 17 00:00:00 2001 From: Tiger Date: Tue, 20 Jan 2026 12:18:30 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E4=BA=86=E4=B8=8A?= =?UTF-8?q?=E4=B8=AA=E6=8F=90=E4=BA=A4=E7=9A=84=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/routes/matters.py | 6 +----- app/routes/reactions.py | 6 +++++- app/utils/reactions.py | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/app/routes/matters.py b/app/routes/matters.py index 88a0a8c..835a700 100644 --- a/app/routes/matters.py +++ b/app/routes/matters.py @@ -8,8 +8,4 @@ matter_bp = Blueprint("matter", __name__, "/matter") @matter_bp.route("/id/") def search_matter(id): - return matters.readMatter(id) - -@matter_bp.route("/match/") -def select_matter(id): - return id \ No newline at end of file + return matters.readMatter(id) \ No newline at end of file diff --git a/app/routes/reactions.py b/app/routes/reactions.py index 87f4aaf..a0fbdeb 100644 --- a/app/routes/reactions.py +++ b/app/routes/reactions.py @@ -8,4 +8,8 @@ reaction_bp = Blueprint("reaction", __name__, "/reaction") @reaction_bp.route("/id/") def search_reaction(id): - return reactions.readReaction(id) \ No newline at end of file + return reactions.readReaction(id) + +@reaction_bp.route("/match/") +def select_matter(id): + return reactions.selectReaction(id) \ No newline at end of file diff --git a/app/utils/reactions.py b/app/utils/reactions.py index 269e80b..c1f9713 100644 --- a/app/utils/reactions.py +++ b/app/utils/reactions.py @@ -33,7 +33,7 @@ def readReaction(id: str): def selectReaction(id: str): matter_id = match_list.get(id, -1) - if (matter_id == -1): + if matter_id == -1: return {"message": f"No Matter {id}"} return matter_id \ No newline at end of file