From 3672053dec01488195d05de42eb2fcaef6029046 Mon Sep 17 00:00:00 2001 From: ElaineZhao92 <10886524+elainezhao92@user.noreply.gitee.com> Date: Wed, 21 Dec 2022 08:30:48 +0000 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9userblock=E8=B7=AF=E7=94=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: ElaineZhao92 <10886524+elainezhao92@user.noreply.gitee.com> --- backend/routes.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/routes.py b/backend/routes.py index 0bddbc9..7b3daab 100644 --- a/backend/routes.py +++ b/backend/routes.py @@ -215,10 +215,10 @@ def add_routes(app): username = flask.request.json.get('username') return interface.comment.get_user_comments_num(username) - @app.route('/api/getCommentTotalLikes', methods=['POST']) + @app.route('/api/getUserBlockInfo', methods=['POST']) def get_user_comment_likes_number() -> str: username = flask.request.json.get('username') - return interface.comment.get_user_comment_likes_number(username) + return interface.comment.get_UserBlock_Information(username) @app.route('/api/deleteComment', methods=['POST']) def delete_comment() -> None: -- Gitee