From 5da8942b62b00714ae0b91fd8b7fda3d642587a1 Mon Sep 17 00:00:00 2001 From: shoucandanghehe Date: Thu, 24 Oct 2024 22:27:33 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20=E9=87=8D=E5=91=BD=E5=90=8D?= =?UTF-8?q?=E5=8F=98=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nonebot_plugin_tetris_stats/db/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nonebot_plugin_tetris_stats/db/__init__.py b/nonebot_plugin_tetris_stats/db/__init__.py index fb0c89be..c4ee595a 100644 --- a/nonebot_plugin_tetris_stats/db/__init__.py +++ b/nonebot_plugin_tetris_stats/db/__init__.py @@ -55,12 +55,12 @@ async def create_or_update_bind( game_account=game_account, ) session.add(bind) - message = BindStatus.SUCCESS + status = BindStatus.SUCCESS else: bind.game_account = game_account - message = BindStatus.UPDATE + status = BindStatus.UPDATE await session.commit() - return message + return status T = TypeVar('T', 'TETRIOHistoricalData', 'TOPHistoricalData', 'TOSHistoricalData')